-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
98 lines (84 loc) · 1.97 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import React, { Component } from 'react';
import { AppRegistry, Text, View, Image } from 'react-native';
import {
StackNavigator,
DrawerNavigator,
DrawerItems
} from 'react-navigation';
import HomeScreen from './components/HomeScreen'
import Slack from './components/Slack'
import Settings from './components/Settings'
import Checkin from './components/Checkin'
import Map from './components/Maps'
import Twitter from './components/Twitter'
const DrawerContent = (props) => (
<View>
<View
style={{
height: 140,
backgroundColor: '#203E5B',
alignItems: 'center',
justifyContent: 'center'
}}
>
<Image source={require('./components/resized_header.png')} style={{resizeMode:'contain', width: 200, height:50}} />
</View>
<DrawerItems {...props} />
</View>
)
const HomeScreenStack = StackNavigator(
{
Home: {
screen: HomeScreen,
}
},
{
navigationOptions: ({ navigation }) => ({
initialRouteName: 'Schedule',
headerMode: 'screen',
headerTitle: 'Schedule',
drawerLabel: 'Schedule',
}),
}
);
const CheckinStack = StackNavigator(
{
Checkin: {
screen: Checkin,
}
},
{
navigationOptions: ({ navigation }) => ({
initialRouteName: 'Checkin',
headerMode: 'screen',
headerTitle: 'Check In',
drawerLabel: 'Check In',
}),
}
);
const SettingsStack = StackNavigator(
{
Settings: {
screen: Settings,
}
},
{
navigationOptions: ({ navigation }) => ({
initialRouteName: 'Settings',
headerMode: 'screen',
headerTitle: 'Settings',
drawerLabel: 'Settings',
}),
}
);
const HackTX = DrawerNavigator({
Schedule: { screen: HomeScreenStack },
Slack: {screen: Slack},
Twitter: {screen: Twitter},
"Check in": {screen: CheckinStack},
Venue: {screen: Map},
Settings: {screen: SettingsStack}
}, {
contentComponent: DrawerContent
});
AppRegistry.registerComponent('HackTX', () => HackTX);