mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 17:31:06 +08:00
The PR changes a few things about linking configuration: - Moves the configuration for screens to a screens property so that it's possible to specify other options like `initialRouteName` for the navigator at root - The nesting in the configuration needs to strictly match the shape of the navigation tree, it can't just rely on URL's shape anymore - If a screen is not specified in the configuration, it won't be parsed to/from the URL (this is essential to handle unmatched screens) - Treat `path: ''` and no specified path in the same way, unless `exact` is specified - Disallow specifying unmatched screen with old format - Add support for `initialRouteName` at top level - Automatically adapt old configuration to new format
Example for React Navigation
If you want to run the example from the repo,
- Clone the repository and run
yarnin the project root - Run
yarn example startto start the packager - Follow the instructions to open it with the Expo app
You can also run the currently published app on Expo on your Android device or iOS simulator or the web app in your browser.