Skip to content

Instantly share code, notes, and snippets.

@serhanozcan
Created September 4, 2019 06:52
Show Gist options
  • Save serhanozcan/670a225089c5cd43868d06e32a96c7b0 to your computer and use it in GitHub Desktop.
Save serhanozcan/670a225089c5cd43868d06e32a96c7b0 to your computer and use it in GitHub Desktop.
import React from 'react';
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import {MainTabNavigator} from './MainTabNavigator';
import {AuthNavigator} from './AuthNavigation'
export default createAppContainer(
createSwitchNavigator({ // AuthNavigation ve diğer istediğin stackleri buraya ekleyip kullanırsın.
Main: MainTabNavigator,
Auth: AuthNavigator
},{
initialRouteName:'Auth' // Burasıda ilk açılışta hangisini istersen onu açar.
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment