-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
44 lines (37 loc) · 1.02 KB
/
index.ios.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
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
import
{
Actions,
Scene,
Router
} from 'react-native-router-flux';
var allTrainsView = require('./allTrainsView')
var stationView = require('./stationView')
class RushHourReactNative extends Component {
render() {
return <Router>
<Scene key="root" navigationBarStyle={styles.navigationBarStyle} titleStyle={styles.titleStyle} backButtonImage={require('./chevron-left-white.png')}>
<Scene key="allTrainsView" component={allTrainsView} title="Rush Hour React Native" initial={true}/>
<scene key="stationView" component={stationView} title="*Will be Overridden*" />
</Scene>
</Router>
};
}
const styles = StyleSheet.create({
navigationBarStyle:{
backgroundColor: '#008635'
},
titleStyle:{
color: '#ffffff'
},
leftButtonTextStyle:{
color: '#ffffff'
}
});
AppRegistry.registerComponent('RushHourReactNative', () => RushHourReactNative);