-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.android.js
More file actions
77 lines (72 loc) · 2.42 KB
/
index.android.js
File metadata and controls
77 lines (72 loc) · 2.42 KB
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {Router,Stack,Scene} from 'react-native-router-flux';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Home from './Page/home';
import Menu from './Page/menu';
import About from './Page/about';
import List from './Page/List';
import ListItem from './Page/listItem';
import ListItem2 from './Page/listItem2';
import ListItem3 from './Page/listItem3';
import ListItem4 from './Page/listItem4';
import ListItem5 from './Page/listItem5';
import ListItem6 from './Page/listItem6';
import Location from './Page/map';
import Detail from './Page/detail';
import Map from './Page/map';
import Collection from './Page/collection'
export default class Deadlineclub extends Component {
render() {
return (
<Router>
<Stack key="root">
<Scene key="home" component={Home} hideNavBar={true}/>
<Scene key="menu" component={Menu} hideNavBar={true}/>
<Scene key="list" component={List} title="賞桐景點與步道推薦"/>
<Scene key="listItem" component={ListItem} title="基隆賞桐景點及步道收藏"/>
<Scene key="listItem2" component={ListItem2} title="桃園賞桐景點及步道收藏"/>
<Scene key="listItem3" component={ListItem3} title="新竹賞桐景點及步道收藏"/>
<Scene key="listItem4" component={ListItem4} title="苗栗景點及步道收藏"/>
<Scene key="listItem5" component={ListItem5} title="南投景點及步道收藏"/>
<Scene key="listItem6" component={ListItem6} title="台中景點及步道收藏"/>
<Scene key="detail" component={Detail} title="詳細資料"/>
<Scene key="about" component={About} title="關於服務"/>
<Scene key="map" component={Map} title="路線資訊"/>
<Scene key="collection" component={Collection} title="收藏"/>
</Stack>
</Router>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
Background:{
flex: 1,
},
});
AppRegistry.registerComponent('Deadlineclub', () => Deadlineclub);