-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.android.js
44 lines (39 loc) · 1.19 KB
/
index.android.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, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
TouchableHighLight,
TextInput
} from 'react-native';
import TitleBar from './component/titleBar.js';
import {Scene, Router} from 'react-native-router-flux';
const styles = require('./styles.js')
const StatusBar = require('./components/StatusBar');
import Login from './components/Login'
import Register from './components/Register'
import Home from './components/Home'
import Home1 from './components/Home1'
export default class Blood_Helping extends Component {
constructor(props) {
super(props)
this.state = {
newToDo: 'Hello',
}
}
render() {
return (
<Router>
<Scene key="root">
<Scene key="Login" component={Login} title="Login" hideNavBar={true} initial/>
<Scene key="Register" component={Register} title="Register" hideNavBar={false}/>
<Scene key="Home" component={Home} title="Home" hideNavBar={true} />
<Scene key="Home1" component={Home1} title="Home1" hideNavBar={true} />
</Scene>
</Router>
);
}
}
AppRegistry.registerComponent('Blood_Helping', () => Blood_Helping);