mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 04:25:34 +08:00
This commit adds a new optional property on the `route` object called `path`. This property will be added if the screen was opened from a deep link. Having this property helps with few things: - Preserve the URL when the path was unmatched, e.g. 404 routes - Expose the path to the user so they could handle it manually if needed, e.g. open in a webview - Avoid changing URL if state to path doesn't match current path, e.g. if orders of params change Fixes #9102
@react-navigation/routers
Routers to help build custom navigators.
You probably don't need to use this package directly if you're not building custom navigators.
Installation
Open a Terminal in your project's folder and run,
yarn add @react-navigation/routers
Usage
Documentation can be found on the React Navigation website.