react-navigation#createSwitchNavigator JavaScript Examples

The following examples show how to use react-navigation#createSwitchNavigator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.js    From react-native-todolist with MIT License 6 votes vote down vote up
MainNavigator = createSwitchNavigator(
  {
    Login: { screen: LoginScreen },
    Signup: { screen: SignupScreen },
    Setup: { screen: Setup },
    Dashboard: { screen: Dashboard },
    CreatePlanner: { screen: CreatePlanner },
    Record: { screen: Record },
    Message: { screen: Message },
    Event: { screen: EventDetails },
    Search: { screen: Search },
    Announcement: { screen: Announcement },
    AnnoucementDetails: { screen: AnnoucementDetails }
  },
  {
    headerMode: 'none',
    navigationOptions: {
      headerVisible: false,
    },
  },
)
Example #2
Source File: App.js    From geometry_3d with MIT License 6 votes vote down vote up
AppNavigator = createAppContainer(
  createSwitchNavigator(
    {
      Loading: LoadingScreen,
      App: AppBottomNavigator,
      Auth: AuthStack,
      Objects: Object3DNavigator,
    },
    {
      initialRouteName: "Loading",
    }
  )
)
Example #3
Source File: App.js    From hugin-mobile with GNU Affero General Public License v3.0 6 votes vote down vote up
AppContainer = createAppContainer(createSwitchNavigator(
    {
        Login: {
            screen: LoginNavigator,
        },
        Home: {
           screen: HomeNavigator,
        },
    },
    {
        initialRouteName: 'Login',
    }
))
Example #4
Source File: AppNavigator.js    From pineapple-reactNative with MIT License 6 votes vote down vote up
App = createSwitchNavigator({
  // You could add another route here for authentication.
  // Read more at https://reactnavigation.org/docs/en/auth-flow.html
  Load: {
    screen: LoadNavigator,
  },
  Auth: {
    screen: StackNavigator,
  },
  Main: {
    screen: MainTabNavigator,
  }
})
Example #5
Source File: AppNavigator.js    From mern-stack with MIT License 6 votes vote down vote up
switchNavigator = createSwitchNavigator(
  {
    AuthLoading: AuthLoadingScreen,
    authStack,
    mainBottomTabs,
  },
  {
    initialRouteName: 'AuthLoading',
  }
)
Example #6
Source File: AppNavigator.web.js    From expo-soundcloud-clone with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
  // You could add another route here for authentication.
  // Read more at https://reactnavigation.org/docs/en/auth-flow.html
  Main: MainTabNavigator,
})
Example #7
Source File: routes.js    From interface-nubank with MIT License 5 votes vote down vote up
Routes = createAppContainer(createSwitchNavigator({ Main }))
Example #8
Source File: AppNavigation.js    From gDoctor with MIT License 5 votes vote down vote up
MainNav = createSwitchNavigator({
  SplashScreen,
  App: AppStack
}, {
  initialRouteName: 'SplashScreen'
})
Example #9
Source File: routes.js    From openweathermap-reactnative with MIT License 5 votes vote down vote up
Routes = createAppContainer(createSwitchNavigator({Main}))
Example #10
Source File: AppNavigator.web.js    From pineapple-reactNative with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
  // You could add another route here for authentication.
  // Read more at https://reactnavigation.org/docs/en/auth-flow.html
  Main: MainTabNavigator,
})
Example #11
Source File: App.js    From Wily_Authentication with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
LoginScreen:{screen: LoginScreen},
TabNavigator:{screen: TabNavigator}
})
Example #12
Source File: App.js    From barter-app-stage-10 with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
  WelcomeScreen:{screen: WelcomeScreen},
  Drawer:{screen: AppDrawerNavigator},
  BottomTab: {screen: AppTabNavigator},
})
Example #13
Source File: App.js    From barter-app-stage-5 with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
  WelcomeScreen:{screen: WelcomeScreen},
  AppDrawNavigator : AppDrawNavigator,
})
Example #14
Source File: App.js    From book-santa-stage-10 with MIT License 5 votes vote down vote up
switchNavigator = createSwitchNavigator({
  WelcomeScreen:{screen: WelcomeScreen},
  Drawer:{screen: AppDrawerNavigator},
  BottomTab: {screen: AppTabNavigator},
})