@@ -111,9 +111,11 @@ export default class DialogScreen extends Component {
111
111
getWarning = ( ) => {
112
112
const { showHeader, scroll, panDirection} = this . state ;
113
113
if ( ! showHeader && scroll !== this . SCROLL_TYPE . NONE ) {
114
- return < Text color = { Colors . red30 } > It is recommended to have pannable header with scrollable content</ Text > ;
114
+ return (
115
+ < Text color = { Colors . $textDangerLight } > It is recommended to have pannable header with scrollable content</ Text >
116
+ ) ;
115
117
} else if ( showHeader && panDirection !== PanningProvider . Directions . DOWN ) {
116
- return < Text color = { Colors . red30 } > It is recommended to have pannable header with direction=down</ Text > ;
118
+ return < Text color = { Colors . $textDangerLight } > It is recommended to have pannable header with direction=down</ Text > ;
117
119
}
118
120
} ;
119
121
@@ -130,7 +132,7 @@ Scroll: ${scroll}`;
130
132
return (
131
133
< View >
132
134
< View margin-20 >
133
- < Text > { title } </ Text >
135
+ < Text $textDefault > { title } </ Text >
134
136
</ View >
135
137
< View height = { 2 } bg-grey70 />
136
138
</ View >
@@ -151,7 +153,7 @@ Scroll: ${scroll}`;
151
153
152
154
renderVerticalItem = ( { item : color } ) => {
153
155
return (
154
- < Text text50 margin-20 color = { color . value } >
156
+ < Text $textDefault text50 margin-20 color = { color . value } >
155
157
{ color . label }
156
158
</ Text >
157
159
) ;
@@ -212,8 +214,8 @@ Scroll: ${scroll}`;
212
214
const data = (
213
215
< View spread flex = { scroll !== this . SCROLL_TYPE . NONE } >
214
216
< View marginT-20 marginH-20 >
215
- { ! showHeader && < Text text50 > { this . title } </ Text > }
216
- < Text marginT-20 = { ! showHeader } > { this . getMessage ( ) } </ Text >
217
+ { ! showHeader && < Text $textDefault text50 > { this . title } </ Text > }
218
+ < Text $textDefault marginT-20 = { ! showHeader } > { this . getMessage ( ) } </ Text >
217
219
{ this . getWarning ( ) }
218
220
</ View >
219
221
{ content }
@@ -260,12 +262,12 @@ Scroll: ${scroll}`;
260
262
return (
261
263
< ScrollView >
262
264
< View flex padding-12 >
263
- < Text text30 grey10 marginB-20 >
265
+ < Text $textDefault text30 marginB-20 >
264
266
Dialog
265
267
</ Text >
266
268
267
269
< RadioGroup marginT-20 initialValue = { panDirection } onValueChange = { this . setPanDirection } >
268
- < Text > Panning Direction:</ Text >
270
+ < Text $textDefault > Panning Direction:</ Text >
269
271
< View row marginV-10 >
270
272
< RadioButton value = { null } label = { 'None' } />
271
273
< RadioButton value = { PanningProvider . Directions . UP } label = { 'Up' } marginL-10 />
@@ -276,7 +278,7 @@ Scroll: ${scroll}`;
276
278
</ RadioGroup >
277
279
278
280
< RadioGroup marginT-20 initialValue = { position } onValueChange = { this . setPosition } >
279
- < Text > Position:</ Text >
281
+ < Text $textDefault > Position:</ Text >
280
282
< View row marginV-10 >
281
283
< RadioButton value = { 'top' } label = { 'Top' } />
282
284
< RadioButton value = { null } label = { 'Center' } marginL-10 />
@@ -285,7 +287,7 @@ Scroll: ${scroll}`;
285
287
</ RadioGroup >
286
288
287
289
< RadioGroup marginT-20 initialValue = { scroll } onValueChange = { this . setScroll } >
288
- < Text > Scroll:</ Text >
290
+ < Text $textDefault > Scroll:</ Text >
289
291
< View row marginV-10 >
290
292
< RadioButton value = { this . SCROLL_TYPE . NONE } label = { 'None' } />
291
293
< RadioButton value = { this . SCROLL_TYPE . VERTICAL } label = { 'Vertical' } marginL-10 />
@@ -294,17 +296,17 @@ Scroll: ${scroll}`;
294
296
</ RadioGroup >
295
297
296
298
< View row marginT-20 centerV >
297
- < Text > Toggle pannable header:</ Text >
299
+ < Text $textDefault > Toggle pannable header:</ Text >
298
300
< Switch value = { showHeader } onValueChange = { this . toggleShowHeader } marginL-10 />
299
301
</ View >
300
302
301
303
< View row marginT-20 centerV >
302
- < Text > Add some style:</ Text >
304
+ < Text $textDefault > Add some style:</ Text >
303
305
< Switch value = { isRounded } onValueChange = { this . toggleIsRounded } marginL-10 />
304
306
</ View >
305
307
306
308
< View row marginT-20 centerV >
307
- < Text > Ignore Background Press:</ Text >
309
+ < Text $textDefault > Ignore Background Press:</ Text >
308
310
< Switch value = { ignoreBackgroundPress } onValueChange = { this . toggleIgnoreBackgroundPress } marginL-10 />
309
311
</ View >
310
312
@@ -319,10 +321,10 @@ Scroll: ${scroll}`;
319
321
320
322
const styles = StyleSheet . create ( {
321
323
dialog : {
322
- backgroundColor : Colors . white
324
+ backgroundColor : Colors . $backgroundDefault
323
325
} ,
324
326
roundedDialog : {
325
- backgroundColor : Colors . white ,
327
+ backgroundColor : Colors . $backgroundDefault ,
326
328
marginBottom : Constants . isIphoneX ? 0 : 20 ,
327
329
borderRadius : 12
328
330
} ,
0 commit comments