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

Support for Register screen #2

Open
wants to merge 1 commit into
base: nestedTab
Choose a base branch
from

Conversation

ahetawal-p
Copy link

Hey @shubhnik
Just wanted to share the diff of what I am trying to build on top of the nestedTab branch.
I will move this to separate branch, once we decide on how to go about to support this scenario.

So basically trying to add a Register button on the login screen, which will navigate to the screen in the StackNavigator.
But for that to work, seems i need to define it as an action and state as well. And have another redux state to handle the register action.

So I am thinking if thats the route we go with, I would then need to define all these actions and state before hand for : login register password forget .
Is that how this will work ?

@shubhnik
Copy link
Owner

for loggedOut state you most probably need an initial state corresponding to the stackNavigator(containing login and signup) and for LoggedIn state you will need an initialState for TabNavigator. For register action you have to push the state for TabNavigator.

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

Successfully merging this pull request may close these issues.

2 participants