Adds a new state persistence mechanisms to all of the navigators via createNavigationContainer
There are two new props that you can provide to a navigation container: `storageKey` and `renderLoading`.
`storageKey` is the string key to be used with AsyncStorage while saving and persisting navigation state. To disable persistence, set to null.
`renderLoading` allows you to render something while the navigator re-hydrates its state and loads its initial URL. By default this returns null, but Expo users will want to render a <AppLoading /> component for smooth app launches
There is also functionality in this PR to observe errors that come from re-hydrating state, and gracefully recover by dispatching an init action.
Also this revises the init action to *reset* the navigation state, rather than preserve the previous state.
* [Playground] Commit auto-changes to package.json, yarn.lock
* [Playground] Rerun create-react-native-app
Preserving rn-cli.js and transformer.js
Still not quite working.
* [Playground] Fix the Expo loading issue by removing projectRoots
Now it looks in the right place to find its resources, including 'entryPoint'.
* [Playground] Add postinstall script to clean up files Yarn copies in
Yarn copies them when installing locally, causing lots of @providesModule collisions.
* Update the Contributors guide to explain how to use the example app
And recommend Yarn by default
* [Playground] Remove now-obsolete rn-cli.config.js
* [Playground] Upgrade expo and other dependencies
* [Playground] Don't delete .git just in case