Auth Navigators
Authentication is done by mounting navigation stack for all the credentials work (login, registration, remind password etc.) or stack for authenticated user (e.g. Dashboard).
Core concept
Root App.tsx
component returns MainStack
that decides whether the users should see scenes for logged in users or for guests. It can also display SplashScreen
if fetching auth data is not finished yet.
Scenes related to authentication are gathered inside AuthStack
.
Scenes for logged-in users are gathered inside UserStack
.