Open jake-pauls opened 3 years ago
All the authentication context happens in app/Router.js
using the AuthRouter
component. Here, we'll perform the authentication for the user and display the proper navigation context should they be logged in or not and display the proper navigation stack in either case.
return user ? (
<LoggedInNavigation />
) : (
<LoggedOutNavigation />
)
Current prototype has the logged in navigation wired into the logged out stack simply for testing purposes until we can facilitate proper user authentication.
Have two seperate navigation styles/stacks in-app using
@react-navigation
andreact-native-paper
libraries. One of these navigation stacks will be used for the 'Signed Out' layout and the other for the 'Signed In' layout.The 'Signed Out' layout should have components and screens for the
components/auth
andscreens/auth
project directories. On a successful login attempt ('Signed In' layout), the stack should switch into the default bottom-nav UI flow.