-
-
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
feat: add optional screens per navigator #8805
Conversation
Deploy preview for react-navigation-example ready! Built with commit cf60b79 https://deploy-preview-8805--react-navigation-example.netlify.app |
The Expo app for the example from this branch is ready! expo.io/@react-navigation/react-navigation-example?release-channel=pr-8805 |
e436e39
to
242b379
Compare
Codecov Report
@@ Coverage Diff @@
## main #8805 +/- ##
==========================================
- Coverage 74.50% 74.10% -0.40%
==========================================
Files 131 131
Lines 3204 3236 +32
Branches 967 982 +15
==========================================
+ Hits 2387 2398 +11
- Misses 715 734 +19
- Partials 102 104 +2
Continue to review full report at Codecov.
|
Changes done here will work properly with software-mansion/react-native-screens#624 merged and released. The documentation of `screensEnabled` and `activeLimit` props should also be added. It also enabled `Screens` in iOS stack-navigator by default. New things: - `detachInactiveScreens` - prop for navigators with `react-native-screens` integration that can be set by user. It controls if the `react-native-screens` are used by the navigator. - `detachPreviousScreen` - option that tells to keep the previous screen active. It can be set by user, defaults to `true` for normal mode and `false` for the last screen for mode = “modal”. Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
Changes done here will work properly with software-mansion/react-native-screens#624 merged and released. The documentation of
detachInactiveScreens
anddetachPreviousScreen
props should also be added.New things:
detachInactiveScreens
- prop for all navigators that can be switched by the user. It controls if thereact-native-screens
are used by the navigator.detachPreviousScreen
- a prop that tells if the previous screen should stay active after the transition. It can be set by the user, defaults totrue
for normal mode, andtrue
for mode = “modal”.