SHARE
TWEET

Untitled

a guest Jul 19th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top