RN-NavigationExperimental-Redux-Example | small demonstration app showing how to use Redux | Dataset library
kandi X-RAY | RN-NavigationExperimental-Redux-Example Summary
kandi X-RAY | RN-NavigationExperimental-Redux-Example Summary
At this time, NavigationExperimental is moving quite quickly and the API is still a bit of a moving target. Master branch will attempt to follow the current stable release (this is a change from previous) since things are starting to quiet down. For version-specific implementations older than the current stable release, I'm creating a branch per RN version. For example, see the 0.23 branch of this repo to see how to implement against the NavigationExperimental API in RN 0.23. In the future, when NavigationExperimental is changing little between versions, we'll switch to a tag-based approach instead of branches.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Updates navigation state according to navigation state
- Navigate methods
- Navigates navigation actions
- Navigate to specified key .
- Navigate to given index .
- Navigate to navigation
RN-NavigationExperimental-Redux-Example Key Features
RN-NavigationExperimental-Redux-Example Examples and Code Snippets
Community Discussions
Trending Discussions on RN-NavigationExperimental-Redux-Example
QUESTION
Our React Native app uses Navigation Experimental NavigationCardStack. On switch tab (NavigationStateUtils.jumpToIndex), the scenes in the tab I switch from, unmount. When I switch back to the original tab, the same scenes mount again causing some slowness in the app.
We've created an example GitHub repo here: https://github.com/zachrnolan/RN-NavigationExperimental-Redux-Example/tree/tabs
Is this behavior part of Navigation Experimental or a side-effect of our navigation implementation?
...ANSWER
Answered 2017-Jan-13 at 21:56It's because you didn't switch tabs, you replaced the navigation states. To actually switch tabs, you should pass tabs
state to NavigationCardStack
like this (fixed code from you sample):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RN-NavigationExperimental-Redux-Example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page