Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. const prefix = 'myapp://'
  2.  
  3. export const App = () => {
  4. return (
  5. <ThemeProvider theme={theme}>
  6. <Routes uriPrefix={prefix} />
  7. </ThemeProvider>
  8. )
  9. }
  10.  
  11. const AuthStack = createStackNavigator({ Onboarding: OnboardingFlowScreen, SignIn: SignInScreen })
  12. const AppTabBar = createBottomTabNavigator({ Feed: FeedScreen, Create: CreateScreen, Profile: ProfileScreen })
  13.  
  14. export const Routes = createAppContainer(
  15. createSwitchNavigator({
  16. AuthLoading: AuthLoadingScreen,
  17. LogInLoading: { screen: LogInLoadingScreen, path: 'auth_success' },
  18. App: AppTabBar,
  19. Auth: AuthStack,
  20. })
  21. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement