2
2
import React , { Component } from 'react' ;
3
3
import { Platform , View } from 'react-native' ;
4
4
import { connect } from 'react-redux' ;
5
- import { Container , Header , Title , Content , Button , Icon , Card , CardItem , Text , Left , Body , Right } from 'native-base' ;
5
+ import { Container , Header , Title , Content , Button , Icon , Card , CardItem , Text , Left , Body , Right , IconNB } from 'native-base' ;
6
6
7
7
import { openDrawer } from '../../actions/drawer' ;
8
8
import styles from './styles' ;
@@ -22,7 +22,7 @@ class NHButton extends Component { //eslint-disable-line
22
22
< Header >
23
23
< Left >
24
24
< Button transparent onPress = { this . props . openDrawer } >
25
- < Icon name = "ios- menu" />
25
+ < Icon name = "menu" />
26
26
</ Button >
27
27
</ Left >
28
28
< Body >
@@ -36,15 +36,17 @@ class NHButton extends Component { //eslint-disable-line
36
36
< CardItem header >
37
37
< Text > Block Button</ Text >
38
38
</ CardItem >
39
- < CardItem style = { { flexDirection : 'column' } } >
40
- < Button block capitalize primary style = { styles . mb15 } >
41
- < Text > { ( Platform . OS === 'android' ) ? androidText : iosText } </ Text >
42
- </ Button >
43
- < Button block success style = { styles . mb15 } > < Text > Success</ Text > </ Button >
44
- < Button block info style = { styles . mb15 } > < Text > Info</ Text > </ Button >
45
- < Button block warning style = { styles . mb15 } > < Text > Warning</ Text > </ Button >
46
- < Button block danger style = { styles . mb15 } > < Text > Danger</ Text > </ Button >
47
- < Button block disabled style = { styles . mb15 } > < Text > Disabled</ Text > </ Button >
39
+ < CardItem >
40
+ < Body >
41
+ < Button block capitalize primary style = { styles . mb15 } >
42
+ < Text > { ( Platform . OS === 'android' ) ? androidText : iosText } </ Text >
43
+ </ Button >
44
+ < Button block success style = { styles . mb15 } > < Text > Success</ Text > </ Button >
45
+ < Button block info style = { styles . mb15 } > < Text > Info</ Text > </ Button >
46
+ < Button block warning style = { styles . mb15 } > < Text > Warning</ Text > </ Button >
47
+ < Button block danger style = { styles . mb15 } > < Text > Danger</ Text > </ Button >
48
+ < Button block disabled style = { styles . mb15 } > < Text > Disabled</ Text > </ Button >
49
+ </ Body >
48
50
</ CardItem >
49
51
</ Card >
50
52
@@ -107,88 +109,88 @@ class NHButton extends Component { //eslint-disable-line
107
109
< CardItem style = { { flexDirection : 'column' } } >
108
110
< View style = { styles . buttonContainer } >
109
111
< Button transparent style = { styles . margin } >
110
- < Icon name = "ios-arrow-back" style = { styles . iconButton } />
112
+ < IconNB name = "ios-arrow-back" style = { styles . iconButton } />
111
113
</ Button >
112
114
< Button transparent style = { styles . margin } >
113
- < Icon name = "ios-arrow-down" style = { styles . iconButton } />
115
+ < IconNB name = "ios-arrow-down" style = { styles . iconButton } />
114
116
</ Button >
115
117
< Button transparent style = { styles . margin } >
116
- < Icon name = "ios-arrow-up" style = { styles . iconButton } />
118
+ < IconNB name = "ios-arrow-up" style = { styles . iconButton } />
117
119
</ Button >
118
120
< Button transparent style = { styles . margin } >
119
- < Icon name = "ios-arrow-forward" style = { styles . iconButton } />
121
+ < IconNB name = "ios-arrow-forward" style = { styles . iconButton } />
120
122
</ Button >
121
123
</ View >
122
124
< View style = { styles . buttonContainer } >
123
125
< Button transparent style = { styles . margin } >
124
- < Icon name = "ios-undo-outline" style = { styles . iconButton } />
126
+ < IconNB name = "ios-undo-outline" style = { styles . iconButton } />
125
127
</ Button >
126
128
< Button transparent style = { styles . margin } >
127
- < Icon name = "ios-refresh-circle-outline" style = { styles . iconButton } />
129
+ < IconNB name = "ios-refresh-circle-outline" style = { styles . iconButton } />
128
130
</ Button >
129
131
< Button transparent style = { styles . margin } >
130
- < Icon name = "ios-share-outline" style = { styles . iconButton } />
132
+ < IconNB name = "ios-share-outline" style = { styles . iconButton } />
131
133
</ Button >
132
134
< Button transparent style = { styles . margin } >
133
- < Icon name = "ios-close-circle-outline" style = { styles . iconButton } />
135
+ < IconNB name = "ios-close-circle-outline" style = { styles . iconButton } />
134
136
</ Button >
135
137
</ View >
136
138
< View style = { styles . buttonContainer } >
137
139
< Button transparent style = { styles . margin } >
138
- < Icon name = "ios-fastforward-outline" style = { styles . iconButton } />
140
+ < IconNB name = "ios-fastforward-outline" style = { styles . iconButton } />
139
141
</ Button >
140
142
< Button transparent style = { styles . margin } >
141
- < Icon name = "ios-play" style = { styles . iconButton } />
143
+ < IconNB name = "ios-play" style = { styles . iconButton } />
142
144
</ Button >
143
145
< Button transparent style = { styles . margin } >
144
- < Icon name = "ios-pause" style = { styles . iconButton } />
146
+ < IconNB name = "ios-pause" style = { styles . iconButton } />
145
147
</ Button >
146
148
< Button transparent style = { styles . margin } >
147
- < Icon name = "ios-rewind-outline" style = { styles . iconButton } />
149
+ < IconNB name = "ios-rewind-outline" style = { styles . iconButton } />
148
150
</ Button >
149
151
</ View >
150
152
< View style = { styles . buttonContainer } >
151
153
< View style = { styles . mf } >
152
154
< Button style = { { alignSelf : 'center' } } >
153
- < Icon name = "ios-bluetooth" />
155
+ < IconNB name = "ios-bluetooth" />
154
156
</ Button >
155
157
</ View >
156
158
< View style = { styles . mf } >
157
159
< Button style = { { alignSelf : 'center' } } >
158
- < Icon name = "ios-wifi" />
160
+ < IconNB name = "ios-wifi" />
159
161
</ Button >
160
162
</ View >
161
163
< View style = { styles . mf } >
162
164
< Button style = { { alignSelf : 'center' } } >
163
- < Icon name = "md-plane" />
165
+ < IconNB name = "md-plane" />
164
166
</ Button >
165
167
</ View >
166
168
</ View >
167
169
< View style = { styles . buttonContainer } >
168
170
< Button bordered style = { styles . margin } >
169
- < Icon name = "ios-thumbs-up" />
171
+ < IconNB name = "ios-thumbs-up" />
170
172
< Text > Like</ Text >
171
173
</ Button >
172
174
< Button bordered style = { styles . margin } >
173
- < Icon name = "ios-chatboxes" />
175
+ < IconNB name = "ios-chatboxes" />
174
176
< Text > Comment</ Text >
175
177
</ Button >
176
178
< Button bordered style = { styles . margin } >
177
- < Icon name = "ios-share-alt" />
179
+ < IconNB name = "ios-share-alt" />
178
180
< Text > Share</ Text >
179
181
</ Button >
180
182
</ View >
181
183
< View style = { styles . buttonContainer } >
182
184
< Button bordered style = { styles . margin } >
183
- < Icon name = "ios-create-outline" />
185
+ < IconNB name = "ios-create-outline" />
184
186
< Text > Status</ Text >
185
187
</ Button >
186
188
< Button bordered style = { styles . margin } >
187
- < Icon name = "ios-camera" />
189
+ < IconNB name = "ios-camera" />
188
190
< Text > Photo</ Text >
189
191
</ Button >
190
192
< Button bordered style = { styles . margin } >
191
- < Icon name = "ios-pin" />
193
+ < IconNB name = "ios-pin" />
192
194
< Text > Check In</ Text >
193
195
</ Button >
194
196
</ View >
0 commit comments