daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import {
  3.   createSwitchNavigator,
  4.   createStackNavigator,
  5.   createAppContainer
  6. } from 'react-navigation';
  7. import AuthScreen from '../screens/auth/Auth';
  8. import MainScreen from '../screens/main/Main';
  9. import AuthLoadingScreen from '../screens/authLoading/AuthLoading';
  10.  
  11. const AppStack = createStackNavigator({ Home: MainScreen });
  12. const AuthStack = createStackNavigator({ Auth: AuthScreen });
  13.  
  14. export default createAppContainer(
  15.   createSwitchNavigator(
  16.     {
  17.       AuthLoading: AuthLoadingScreen,
  18.       App: AppStack,
  19.       Auth: AuthStack
  20.     },
  21.     {
  22.       initialRouteName: 'AuthLoading'
  23.     }
  24.   )
  25. );
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