@@ -26,7 +26,7 @@ import React, {
26
26
*/
27
27
import RNRF , {
28
28
Route ,
29
- Schema ,
29
+ Scene ,
30
30
TabBar } from 'react-native-router-flux' ;
31
31
32
32
/**
@@ -90,7 +90,7 @@ import profileInitialState from './reducers/profile/profileInitialState';
90
90
/**
91
91
* The version of the app but not displayed yet
92
92
*/
93
- var VERSION = '0.0.12 ' ;
93
+ var VERSION = '0.0.13 ' ;
94
94
95
95
/**
96
96
*
@@ -112,16 +112,16 @@ function getInitialState() {
112
112
*
113
113
* Displays the icon for the tab w/ color dependent upon selection
114
114
*/
115
- class TabIcon extends React . Component {
116
- render ( ) {
117
- var color = this . props . selected ? 'FF3366' : 'FFB3B3' ;
118
115
116
+ class TabIcon extends React . Component {
117
+ render ( ) {
118
+ var color = this . props . selected ? '#FF3366' : '#FFB3B3' ;
119
119
return (
120
120
< View style = { { flex :1 , flexDirection :'column' , alignItems :'center' , alignSelf :'center' } } >
121
- < Icon style = { { color : color } } name = { this . props . iconName } size = { 30 } />
122
- < Text style = { { color : color } } > { this . props . title } </ Text >
123
- </ View >
124
- ) ;
121
+ < Icon style = { { color : color } } name = { this . props . iconName } size = { 30 } />
122
+ < Text style = { { color : color } } > { this . props . title } </ Text >
123
+ </ View >
124
+ ) ;
125
125
}
126
126
}
127
127
@@ -154,71 +154,55 @@ export default function native(platform) {
154
154
return (
155
155
< Provider store = { store } >
156
156
< Router hideNavBar = { true } >
157
- < Schema name = "modal"
158
- sceneConfig = { Navigator . SceneConfigs . FloatFromBottom } />
159
-
160
- < Schema name = "floatFromRight"
161
- sceneConfig = { Navigator . SceneConfigs . FloatFromRight } />
162
-
163
- < Schema name = "default" />
164
-
165
- < Schema name = "tab"
166
- type = "switch"
167
- icon = { TabIcon } />
168
-
169
- < Route name = "App"
170
- component = { App }
171
- title = "App"
172
- initial = { true } />
173
-
174
- < Route name = "Login"
175
- component = { Login }
176
- title = "Login"
177
- type = "replace" />
178
-
179
- < Route name = "Register"
180
- component = { Register }
181
- title = "Register"
182
- type = "replace" />
183
-
184
- < Route name = "ForgotPassword"
185
- component = { ForgotPassword }
186
- title = "ForgotPassword"
187
- type = "replace" />
188
-
189
- < Route name = "Subview"
190
- component = { Subview }
191
- title = "Subview"
192
- Schema = "floatFromRight" />
193
-
194
- < Route name = "Tabbar" type = "replace" >
195
- < Router footer = { TabBar }
196
- showNavigationBar = { false } >
197
-
198
- < Route name = "Logout"
199
- schema = "tab"
157
+ < Scene key = "root" >
158
+ < Scene key = "App"
159
+ component = { App }
160
+ title = "App"
161
+ initial = { true } />
162
+
163
+ < Scene key = "Login"
164
+ component = { Login }
165
+ title = "Login"
166
+ type = "replace" />
167
+
168
+ < Scene key = "Register"
169
+ component = { Register }
170
+ title = "Register"
171
+ type = "replace" />
172
+
173
+ < Scene key = "ForgotPassword"
174
+ component = { ForgotPassword }
175
+ title = "ForgotPassword"
176
+ type = "replace" />
177
+
178
+ < Scene key = "Subview"
179
+ component = { Subview }
180
+ title = "Subview" />
181
+
182
+ < Scene key = "Tabbar" tabs = { true } default = "Main" >
183
+ < Scene key = "Logout"
200
184
title = "logout"
185
+ icon = { TabIcon }
201
186
iconName = { "sign-out" }
202
187
hideNavBar = { true }
203
188
component = { Logout } />
204
189
205
- < Route name = "Main"
206
- schema = "tab"
190
+ < Scene key = "Main"
207
191
title = "main"
208
192
iconName = { "home" }
193
+ icon = { TabIcon }
209
194
hideNavBar = { true }
210
195
component = { Main }
211
196
initial = { true } />
212
197
213
- < Route name = "Profile"
214
- schema = "tab"
198
+ < Scene key = "Profile"
215
199
title = "profile"
200
+ icon = { TabIcon }
216
201
iconName = { "gear" }
217
202
hideNavBar = { true }
218
203
component = { Profile } />
219
- </ Router >
220
- </ Route >
221
-
204
+ </ Scene >
205
+ </ Scene >
222
206
</ Router >
223
207
</ Provider >
224
208
) ;
0 commit comments