Created
October 22, 2019 10:47
-
-
Save mdshadman/42d804f2a05aac3e0cece5ea9aa42a47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { createSwitchNavigator, createAppContainer } from 'react-navigation'; | |
import StackNav from '../StackNavigation/StackNavigation'; | |
import DrawerNav from '../DrawerNavigation/DrawerNavigation'; | |
import TabsNav from '../TabsNavigation/TabsNavigation'; | |
const SwitchNavigator = createSwitchNavigator({ | |
Auth: StackNav, | |
Drawer: DrawerNav, | |
Tabs: TabsNav | |
}, { | |
initialRouteName: 'Auth', | |
}) | |
const SwitchNav = createAppContainer(SwitchNavigator); | |
export default (SwitchNav); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment