My project structure looks like this :
Tab navigator
|-Tab1
|-Tab2
|-stack navigator
|-login
|
screen1
|
screen2
|
screen3
|-Tab3
|-Tab4
I want my stack navigator route to start from screen1 once I enter the username and password for login screen. Is there any way we can achieve this? Can we reroute/change the routes of stack navigator?
Use SwitchNavigator to change/reroute the screen stack
Here's an example
TODO
:in router.js (handling screen):
create Auth.js to check which account is logged or not:
and in your app.js or index.js :