-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
236 lines (217 loc) · 30.9 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var Homepage = require('./Homepage.js');
var Deadline = require('./Deadline.js');
var Profile = require('./Profile');
var config = require('./config');
var Login = require('./itemLogin');
var {
AppRegistry,
AsyncStorage,
NavigatorIOS,
StyleSheet,
TabBarIOS,
Text,
View,
} = React;
var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAQAAACSR7JhAAADtUlEQVR4Ac3YA2Bj6QLH0XPT1Fzbtm29tW3btm3bfLZtv7e2ObZnms7d8Uw098tuetPzrxv8wiISrtVudrG2JXQZ4VOv+qUfmqCGGl1mqLhoA52oZlb0mrjsnhKpgeUNEs91Z0pd1kvihA3ULGVHiQO2narKSHKkEMulm9VgUyE60s1aWoMQUbpZOWE+kaqs4eLEjdIlZTcFZB0ndc1+lhB1lZrIuk5P2aib1NBpZaL+JaOGIt0ls47SKzLC7CqrlG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iYYezEEAcwOnhqQRTbdH5w+HAfIQdmFNE9YJScKulLHyxF2qk4IiPyvH0DMApYlXpJBp8ygAJYjaBzg2hIhbJVijgCKXLwfMegt7EoAybSlDuIZYrfO9mDyHrgHkrDrNGmjrAhC+UcDB4Ww/9cZO6v6ZGkYErRjkU9i4WRWA3nbF/euNH9Y4S/EBfBlWLPo8NDoqWBPA5sGnX44c3t/2/spG+xYXAXJh03KyVrMgAHW07tXVpC6lG3etxLZRmZJJK7rosjonjU0KQLP5CcDxwNJtEJbrI/I21hJSKwj9n9SaEIDqHBvW7zl+32N1mFzOlGtIo0KykPO6BaB071oSKX16sf4xoGSTB6VKN1+XAFTP4cCZwDz9a3f5VQ8G5H6mT8IJsUeDOgSgb/21lhMmO5KaLp3YLeY9hKkFoNApLW903WuxOAzoxhSloosSkZxSADqlexJYN067Syk9GFDnjwQ+7pSVVAJQubcAu3cKsDzfkoHXQw6Ejk4cUwngZOCU0nnJGVCK3I58H1MIYDjwhsN7fZL3VqIKtgEebrfsFAJIHZXbbltzfU55knUphZaKlS22ADYGnqqMojzQKQO6k0h3E1W22AK4GhhXGUV5oFMG9NK1dYVOTAFow0dZs9ynTem0Nxp6fmiIhqpUfUwBjAGUl6dYMwxMDG5nlWqPKQBFx0yqVHv5cUwGpoQAlUplxhSAt2vdKxHl4MfaIl6xKs6YApjeDoCqgMvvWzKgZeCgqm5lsQQwMARB6G+x5hjQfQVyLeu3xRKAInFH9LvW8sNUDMh5pNJ9RbEEkKpBpdzEDBQBJCbYevFFANZ7KDG+IoDEBFsvvgjAeg8lxlcEkJhg68UXAVjvocT4igASE2y9+CIA6z2UGF8RQGKCrRdfBGC9hxLjKwJITLD14v8FXVURkBK20SIAAAAASUVORK5CYII=';
var Classroom = React.createClass({
statics: {
title: '<TabBarIOS>',
description: 'Tab-based navigation.',
},
displayName: 'TabBarExample',
getInitialState: function() {
return {
selectedTab: 'homeTab',
notifCount: 0,
login: false,
loginErrorText: '',
username: '',
password: '',
};
},
componentDidMount: function() {
// this.fetchData();
// this.setState({
// login: true
// });
// try {
// var username = AsyncStorage.getItem('username');
// if (username == null){
// this.fetchData();
// }
// else {
// this.setState({
// login: true,
// });
// this.fetchData();
// }
// } catch (error) {
// this.setState({
// login: true,
// });
// }
},
fetchData: function(username, password) {
fetch(config.baseUrl + '/session/login?username=' + username + '&password=' + password)
.then((response) => response.json())
.then((responseData) => {
if (responseData.message == 'ok'){
this.setState({
login: true,
});
// AsyncStorage.setItem('username', 'lfs');
} else {
this.setState({
loginErrorText: 'Login failed, Try again!',//this.state.username + '|' + this.state.password + '|' + responseData.message,
});
}
})
.done();
},
_renderContent: function(color: string, pageText: string) {
return (
<View style={[styles.tabContent, {backgroundColor: color}]}>
<Text style={styles.tabText}>{pageText}</Text>
<Text style={styles.tabText}> re-renders of the {pageText}</Text>
</View>
);
},
_renderTab: function(index) {
if (index == 0) {
return (
<NavigatorIOS
style={styles.container}
initialRoute={{
title: 'Classroom',
component: Homepage,
}}
/>
);
}
else if (index == 1) {
return (
<NavigatorIOS
style={styles.container}
initialRoute={{
title: 'Deadline',
component: Deadline,
}}
/>
);
}
else {
return (
<NavigatorIOS
style={styles.container}
initialRoute={{
title: 'My profile',
component: Profile,
}}
/>
);
}
return this._renderContent('#414A8C', 'Home');
},
renderLogin: function () {
var ctx = this;
return (
<Login
onPressButton = {() => {ctx.fetchData(ctx.state.username, ctx.state.password)}}
errorText = {this.state.loginErrorText}
changeUsername = {(username) => {ctx.setState({username: username});}}
changePassword = {(password) => {ctx.setState({password: password});}}/>
)
},
renderTabBar: function() {
return (
<TabBarIOS
tintColor="#4169E1"
barTintColor="white">
<TabBarIOS.Item
title="Home"
icon={{uri: homeIcon, scale: 5}}
selectedIcon={{uri: homeSelected, scale: 5}}
selected={this.state.selectedTab === 'homeTab'}
onPress={() => {
this.setState({
selectedTab: 'homeTab',
});
}}>
{this._renderTab(0)}
</TabBarIOS.Item>
<TabBarIOS.Item
// systemIcon="history"
title="Deadline"
icon={{uri: deadlineIcon, scale: 5}}
selectedIcon={{uri: deadlineSelected, scale: 5}}
// badge={3}
selected={this.state.selectedTab === 'scheduleTab'}
onPress={() => {
this.setState({
selectedTab: 'scheduleTab',
notifCount: 3,
});
}}>
{this._renderTab(1)}
</TabBarIOS.Item>
<TabBarIOS.Item
icon={{uri: userIcon, scale: 4.5}}
selectedIcon={{uri: userSelected, scale: 4.5}}
title="Me"
selected={this.state.selectedTab === 'profileTab'}
onPress={() => {
this.setState({
selectedTab: 'profileTab',
});
}}>
{this._renderTab(2)}
</TabBarIOS.Item>
</TabBarIOS>
);
},
render: function () {
if (this.state.login) {
return this.renderTabBar();
} else {
return this.renderLogin();
}
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'white',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
tabContent: {
flex: 1,
alignItems: 'center',
},
tabText: {
color: 'white',
margin: 50,
},
});
AppRegistry.registerComponent('Classroom', () => Classroom);
module.exports = Classroom;