-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.android.js
More file actions
115 lines (107 loc) · 2.72 KB
/
index.android.js
File metadata and controls
115 lines (107 loc) · 2.72 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
* Booksaying App with React Native
* https://github.com/facebook/react-native
* Author by @haibnu, @gomod0r
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
StatusBar
} from 'react-native';
import Welcome from './src/components/Welcome/Welcome';
import Login from './src/components/login';
import Register from './src/components/register';
import ForgotPassword from './src/components/forgot-password';
import Discovery from './src/components/discovery';
import MyFeed from './src/components/myfeed';
import MyProfile from './src/components/myprofile';
import EditProfile from './src/components/editprofile';
import Add from './src/components/addANDROID';
import BookSearch from './src/components/booksearch';
import Other from './src/components/other';
import EmailRequired from './src/components/emailrequired';
import BookDetail from './src/components/bookdetail';
import QuoteDetail from './src/components/quotedetail';
import Card from './src/components/card'
export default class bookSaying extends Component {
renderScene(route, navigator){
var routeId = route.id;
if(routeId === 'Login'){
return <Login navigator={navigator}/>;
}
if(routeId === 'Register'){
return <Register navigator={navigator}/>;
}
if(routeId === 'Welcome'){
return <Welcome navigator={navigator}/>;
}
if(routeId === 'ForgotPassword'){
return <ForgotPassword navigator={navigator}/>;
}
if(routeId === 'Discovery'){
return <Discovery navigator={navigator}/>;
}
if(routeId === 'MyFeed'){
return <MyFeed navigator={navigator}/>;
}
if(routeId === 'MyProfile'){
return <MyProfile navigator={navigator}/>;
}
if(routeId === 'EditProfile'){
return <EditProfile navigator={navigator}/>;
}
if(routeId === 'Add'){
return <Add navigator={navigator}/>;
}
if(routeId === 'BookSearch'){
return <BookSearch navigator={navigator}/>;
}
if(routeId === 'Other'){
return <Other navigator={navigator}/>;
}
if(routeId === 'EmailRequired'){
return <EmailRequired navigator={navigator}/>;
}
if(routeId === 'BookDetail'){
return <BookDetail navigator={navigator}/>;
}
if(routeId === 'QuoteDetail'){
return <QuoteDetail navigator={navigator}/>;
}
}
render(){
return(
<Navigator
initialRoute={{
id: 'Discovery'
}}
renderScene={
this.renderScene.bind(this)
}
/>
);
}
}
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,
},
});
AppRegistry.registerComponent('bookSaying', () => bookSaying);