Skip to content

Commit d528083

Browse files
committed
split style
1 parent c03c5a5 commit d528083

File tree

2 files changed

+47
-37
lines changed

2 files changed

+47
-37
lines changed

index.js

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ var SettingsView = require('./App/Views/Settings');
2222
var StocksView = require('./App/Views/Stocks');
2323
var WebView = require('./App/Views/Web');
2424

25+
// Styles
26+
var styles = require('./style');
27+
2528
Platform.OS === 'ios' ? StatusBarIOS.setStyle('light-content', false): null;
2629

2730
var 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-
176142
module.exports = Finance;

style.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
});

0 commit comments

Comments
 (0)