react-navigation-auth-flow icon indicating copy to clipboard operation
react-navigation-auth-flow copied to clipboard

Auth flow for redux navigation

Open rawris opened this issue 7 years ago • 4 comments

Hi Spencer,

A great tutorial indeed but can you make the same auth flow for react-navigation and redux together.

Thanks

rawris avatar Sep 06 '17 05:09 rawris

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

vdandie avatar Sep 27 '17 18:09 vdandie

@rawris @daniel-swain did you guys figure out how to setup the reducer for the root Navigator?

eballeste avatar Nov 17 '17 20:11 eballeste

@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 avatar Nov 26 '17 16:11 albinhubsch

@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.

eballeste avatar Nov 27 '17 16:11 eballeste