react-navigation-auth-flow
react-navigation-auth-flow copied to clipboard
Auth flow for redux navigation
Hi Spencer,
A great tutorial indeed but can you make the same auth flow for react-navigation and redux together.
Thanks
Yeah, I second this. I'm trying to integrate this tutorial into a current app, but I'm having a hard time accessing the router/getStateForAction properties of the main navigator
@rawris @daniel-swain did you guys figure out how to setup the reducer for the root Navigator?
@eballeste @rawris @daniel-swain I solved this by by adding a third screen to SignedOut called Splash that I connected to the redux store. From there I then navigate to either SignedIn or login/signup. Maybe not a perfect solution but it works.
@albinhubsch thanks! I ended up, kind of, doing the same thing but instead I use a Loader screen with an animation that then either takes you to the SignedIn or SignedOut screen.