-
Notifications
You must be signed in to change notification settings - Fork 44
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
Integration with redux guide? #52
Comments
For now i see that props.navigateTo is 'alternative' of Redux props.dispatch() Could they be used together or i have to migrate from Redux to Navigation API? |
You shouldn't share state between NavigationRootContainer and redux, they should be held together. If you use redux, use props.dispatch. If you store your state in NavigationRootContainer, use onNavigate. |
@ericvicenti Would you suggest just using Benefits:
|
Sorry, ignore my comment. Finally found a pretty good guide. Here it is if anyone else is looking: https://github.com/jlyman/RN-NavigationExperimental-Redux-Example |
It is not clear (from docs) how to share state between redux & navigation. I could combine all existing redux reducers with navigation reducers but how to use common state?
The text was updated successfully, but these errors were encountered: