35
35
- disable flex
36
36
37
37
``` html
38
- <Block flex ={0} >
38
+ <Block flex =" {0}" >
39
39
<Text >flex: 0</Text >
40
40
</Block >
41
41
<Block noFlex >
46
46
- flex for half of the size
47
47
48
48
``` html
49
- <Block flex ={0.5} >
49
+ <Block flex =" {0.5}" >
50
50
<Text >flex: 0.5</Text >
51
51
</Block >
52
52
```
@@ -145,7 +145,7 @@ Border radius
145
145
- round the corners using borderRadius: 6
146
146
147
147
``` html
148
- <Block radius ={6} >
148
+ <Block radius =" {6}" >
149
149
<Text >1st text</Text >
150
150
<Text >2nd text</Text >
151
151
</Block >
@@ -247,7 +247,7 @@ Set activeOpacity using opacity prop
247
247
default activeOpacity=0.8
248
248
249
249
``` html
250
- <button opacity ={0.5} >
250
+ <button opacity =" {0.5}" >
251
251
<Text >opacity={0.5}</Text >
252
252
</button >
253
253
```
@@ -266,7 +266,7 @@ Disabling the button
266
266
<button disabled >
267
267
<Text >disabled</Text >
268
268
</button >
269
- <button disabled ={false} >
269
+ <button disabled =" {false}" >
270
270
<Text >false</Text >
271
271
</button >
272
272
```
@@ -277,15 +277,15 @@ Add flex to button style
277
277
<button flex >
278
278
<Text >flex=1</Text >
279
279
</button >
280
- <button flex ={2} >
280
+ <button flex =" {2}" >
281
281
<Text >flex=2</Text >
282
282
</button >
283
283
```
284
284
285
285
Add height to button style
286
286
287
287
``` html
288
- <button height ={58} >
288
+ <button height =" {58}" >
289
289
<Text >height=58</Text >
290
290
</button >
291
291
```
@@ -307,7 +307,7 @@ Using Block component with predefined props: color, radius and padding
307
307
Border radius using radius props
308
308
309
309
``` html
310
- <Card radius ={8} >
310
+ <Card radius =" {8}" >
311
311
<Text >radius={8}</Text >
312
312
</Card >
313
313
```
@@ -317,7 +317,7 @@ Padding using padding props
317
317
- default padding={SIZES.base}
318
318
319
319
``` html
320
- <Card padding ={12} >
320
+ <Card padding =" {12}" >
321
321
<Text >padding={12}</Text >
322
322
</Card >
323
323
```
@@ -333,7 +333,7 @@ Set shadow using shadow props
333
333
<Text >shadow</Text >
334
334
</Card >
335
335
336
- <Card shadow elevation ={2} >
336
+ <Card shadow elevation =" {2}" >
337
337
<Text >shadow elevation={2}</Text >
338
338
</Card >
339
339
```
@@ -403,14 +403,14 @@ Usage:
403
403
- fontSize defined by user
404
404
405
405
``` html
406
- <Text size ={20} >fontSize of 20</Text >
406
+ <Text size =" {20}" >fontSize of 20</Text >
407
407
```
408
408
409
409
- margin & padding
410
410
411
411
``` html
412
- <Text margin ={4} >set margin 4 to: top, right, bottom & left</Text >
413
- <Text padding ={6} >set margin 6 to: top, right, bottom & left</Text >
412
+ <Text margin =" {4}" >set margin 4 to: top, right, bottom & left</Text >
413
+ <Text padding =" {6}" >set margin 6 to: top, right, bottom & left</Text >
414
414
```
415
415
416
416
- text styling
@@ -464,7 +464,7 @@ custom theme using the src/theme.js data structure
464
464
- include the custom theme to the component props
465
465
466
466
``` html
467
- <Text primary theme ={customTheme} >primary using new color: #8A00D4</Text >
467
+ <Text primary theme =" {customTheme}" >primary using new color: #8A00D4</Text >
468
468
```
469
469
470
470
- animating text can be used using the "animated" props
0 commit comments