[NavigationExperimental] how to disable animation on reset route
See original GitHub issueWhen Resetting the routes on NavigationExperimental with more then one route the navigator animates to the second route. How do I prevent this? I just want the second scene to be displayed.
For example:
resetRoutesTo([ {key: 'GroupsIndex', title: "Groups"}, {key: 'QuestionsIndex'} ])
with this reducer.
case RESET_ROUTES_TO:
return NavigationStateUtils.reset(state,action.routes)
it still animates.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How do I prevent react-navigation from showing a transition ...
You can disable animation for these screens by adding animationEnabled: false in the navigationOptions of your Home and Landing screens.
Read more >react navigation disable animation - You.com | The AI Search ...
I'd like to temporarily disable animation when reset ting state (https://reactnavigation.org/docs/navigation-prop/#reset). The bigger picture is that some ...
Read more >Coupling Animation and Navigation - Unity - Manual
Then disable the Has Exit Time property on the transitions. This allows the transition to trigger at any time during the animation.
Read more >Animation | Jetpack Compose - Android Developers
AnimatedVisibility waits until all animations in the Transition have finished before removing its content. For exit animations created independent of ...
Read more >The State of Navigation in Jetpack Compose - ProAndroidDev
Investing in good navigation framework from start will help you save tons ... animation (with no ability to disable them) when navigating to ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@skevy, any thoughts on how to handle disabling of animations?
My first thought is that we should add a prop like
enableAnimationto NavigationCardStack, which will configure the animation to look instant. We can eventually offer nicer ways of changing this other than the prop.Navigation Experimental has been deprecated in favor of the
react-navigationlibrary.