File tree Expand file tree Collapse file tree 2 files changed +47
-37
lines changed
Expand file tree Collapse file tree 2 files changed +47
-37
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ var SettingsView = require('./App/Views/Settings');
2222var StocksView = require ( './App/Views/Stocks' ) ;
2323var WebView = require ( './App/Views/Web' ) ;
2424
25+ // Styles
26+ var styles = require ( './style' ) ;
27+
2528Platform . OS === 'ios' ? StatusBarIOS . setStyle ( 'light-content' , false ) : null ;
2629
2730var Finance = React . createClass ( {
@@ -136,41 +139,4 @@ var Finance = React.createClass({
136139 }
137140} ) ;
138141
139- var styles = StyleSheet . create ( {
140- container : {
141- flex : 1 ,
142- backgroundColor : 'black' ,
143- } ,
144- buttonText : {
145- fontSize : 17 ,
146- fontWeight : '500' ,
147- } ,
148- statusBar : {
149- height : 20 ,
150- } ,
151- navBar : {
152- height : 44 ,
153- backgroundColor : '#141414' ,
154- justifyContent : 'space-between' ,
155- } ,
156- navBarText : {
157- fontSize : 18 ,
158- marginVertical : 10 ,
159- } ,
160- navBarTitleText : {
161- color : 'white' ,
162- fontWeight : '500' ,
163- marginVertical : 9 ,
164- } ,
165- navBarLeftButton : {
166- paddingLeft : 10 ,
167- } ,
168- navBarRightButton : {
169- paddingRight : 10 ,
170- } ,
171- navBarButtonText : {
172- color : '#3CABDA' ,
173- } ,
174- } ) ;
175-
176142module . exports = Finance ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var React = require ( 'react-native' ) ;
4+
5+ var {
6+ StyleSheet,
7+ } = React ;
8+
9+ module . exports = StyleSheet . create ( {
10+ container : {
11+ flex : 1 ,
12+ backgroundColor : 'black' ,
13+ } ,
14+ buttonText : {
15+ fontSize : 17 ,
16+ fontWeight : '500' ,
17+ } ,
18+ statusBar : {
19+ height : 20 ,
20+ } ,
21+ navBar : {
22+ height : 44 ,
23+ backgroundColor : '#141414' ,
24+ justifyContent : 'space-between' ,
25+ } ,
26+ navBarText : {
27+ fontSize : 18 ,
28+ marginVertical : 10 ,
29+ } ,
30+ navBarTitleText : {
31+ color : 'white' ,
32+ fontWeight : '500' ,
33+ marginVertical : 9 ,
34+ } ,
35+ navBarLeftButton : {
36+ paddingLeft : 10 ,
37+ } ,
38+ navBarRightButton : {
39+ paddingRight : 10 ,
40+ } ,
41+ navBarButtonText : {
42+ color : '#3CABDA' ,
43+ } ,
44+ } ) ;
You can’t perform that action at this time.
0 commit comments