-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppNavigator.js
31 lines (27 loc) · 1.2 KB
/
AppNavigator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { createAppContainer, createStackNavigator } from 'react-navigation'
import ExampleScreen from 'App/Containers/Example/ExampleScreen'
import SplashScreen from 'App/Containers/SplashScreen/SplashScreen'
import ArticleCategoryScreen from 'App/Containers/ArticleCategory/ArticleCategoryScreen'
/**
* The root screen contains the application's navigation.
*
* @see https://reactnavigation.org/docs/en/hello-react-navigation.html#creating-a-stack-navigator
*/
const StackNavigator = createStackNavigator(
{
// Create the application routes here (the key is the route name, the value is the target screen)
// See https://reactnavigation.org/docs/en/stack-navigator.html#routeconfigs
SplashScreen: SplashScreen,
// The main application screen is our "ExampleScreen". Feel free to replace it with your
// own screen and remove the example.
MainScreen: ExampleScreen,
ArticleCategoryScreen: ArticleCategoryScreen,
},
{
// By default the application will show the splash screen
initialRouteName: 'MainScreen',
// See https://reactnavigation.org/docs/en/stack-navigator.html#stacknavigatorconfig
headerMode: 'none',
}
)
export default createAppContainer(StackNavigator)