how can I navigate between AppContainers?
I'm detecting a correct stack in App.js
const stack = User.isAuthorized() ? authStack : unauthStack;
After user enter the login and password, he need switch the stack from unauthStack.SignIn
to authStack.List
.
const unauthStack = createAppContainer(createStackNavigator({
SignIn: { screen: SignIn },
ForgotPassword: { screen: ForgotPassword },
}));
const authStack = createAppContainer(createBottomTabNavigator({
List: { screen: GeneralStack },
Add: { screen: NewEventStack },
}));
I've tried to Google it but can't find any working examples. And saw some information that complete reload the app could be a reason of memory leak or something like that...
So what's the correct way to do this?