Skip to content
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

Auth flow for redux navigation #2

Open
rawris opened this issue Sep 6, 2017 · 4 comments
Open

Auth flow for redux navigation #2

rawris opened this issue Sep 6, 2017 · 4 comments

Comments

@rawris
Copy link

rawris commented Sep 6, 2017

Hi Spencer,

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

Thanks

@vdandie
Copy link

vdandie commented Sep 27, 2017

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

@eballeste
Copy link

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

@albinhubsch
Copy link

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

@eballeste
Copy link

eballeste commented Nov 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants