homeStack.js 727 Bytes
Newer Older
YoonDongMin's avatar
DongM    
YoonDongMin committed
1
2
3
4
5
import { createStackNavigator } from 'react-navigation-stack';
import { createAppContainer } from 'react-navigation';
import DeptPage from '../DeptPage';
import InfoDetails from '../screens/InfoDetails';
import MainScreen from '../screens/MainScreen';
YoonDongMin's avatar
YoonDongMin committed
6
7

const screens = {
YoonDongMin's avatar
DongM    
YoonDongMin committed
8
9
10
11
12
13
14
    
    DeptPage: {
        screen: DeptPage,
        navigationOptions: {
            title: 'GameZone',
            headerStyle: { backgroundColor: '#eee' }
        }
YoonDongMin's avatar
YoonDongMin committed
15
    },
YoonDongMin's avatar
DongM    
YoonDongMin committed
16
17
18
19
20
21
    InfoDetails: {
        screen: InfoDetails,
        navigationOptions: {
            title: 'Info Details',
            headerStyle: { backgroundColor: '#eee' }
        }
YoonDongMin's avatar
YoonDongMin committed
22
23
24
25
26
27
    }
}

const HomeStack = createStackNavigator(screens);

export default createAppContainer(HomeStack);