-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New API for unhandled linking #11672
Conversation
✅ Deploy Preview for react-navigation-example ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Previously when using nested navigation API, we used that screen as `initialRouteName`. e.g. ```js navigation.navigate('MyScreen', { screen: 'NestedScreen' }); ``` Here, the `'NestedScreen`` will be set as `initialRouteName`. It has the result of rendering the navigator with that screen as focused screen. While this behaviour is expected, that screen was also used as the `initialRouteName` for every other operation ignoring the `initialRouteName` prop - which is not expected. This change refactors the way the focused screen for initial render is set to avoid this behavior.
The Expo app for the example from this branch is ready! |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #11672 +/- ##
==========================================
+ Coverage 75.76% 75.98% +0.21%
==========================================
Files 208 207 -1
Lines 5976 5937 -39
Branches 2321 2299 -22
==========================================
- Hits 4528 4511 -17
+ Misses 1398 1376 -22
Partials 50 50
☔ View full report in Codecov by Sentry. |
This reverts commit 8bf8551.
To make the API easier, we decided to make the hook attached directly to the navigator, instead of returning the function to handle the link.
Now, an unhandled link will be handled on the route change via the provided callback. In order to cancel unhandled links, we provide an additional function
clearUnhandledLink