@@ -39,7 +39,7 @@ let styles = {
39
39
"container": viewStyle(
40
40
~maxHeight=600.->dp,
41
41
~width=80.->pct,
42
- ~justifyContent=#flexStart ,
42
+ ~justifyContent=#"flex-start" ,
43
43
~alignItems=#center,
44
44
~margin=auto,
45
45
(),
@@ -163,12 +163,12 @@ This function accepts all React Native styles below:
163
163
164
164
Accepts one of the following values:
165
165
166
- - `` `flexStart `` (default)
167
- - `` `flexEnd ``
168
- - `` ` center ``
169
- - `` ` stretch ``
170
- - `` `spaceAround ``
171
- - `` `spaceBetween ``
166
+ - `` #"flex-start" `` (default)
167
+ - `` #"flex-end" ``
168
+ - `` # center ``
169
+ - `` # stretch ``
170
+ - `` #"space-around" ``
171
+ - `` #"space-between" ``
172
172
173
173
Controls how rows align in the cross direction, overriding the ` alignContent ` of
174
174
the parent.
@@ -180,11 +180,11 @@ the parent.
180
180
181
181
Accepts one of the following values:
182
182
183
- - `` `flexStart ``
184
- - `` `flexEnd ``
185
- - `` ` center ``
186
- - `` ` stretch `` (default)
187
- - `` ` baseline ``
183
+ - `` #"flex-start" ``
184
+ - `` #"flex-end" ``
185
+ - `` # center ``
186
+ - `` # stretch `` (default)
187
+ - `` # baseline ``
188
188
189
189
Aligns children in the cross direction. For example, if children are flowing
190
190
vertically, ` alignItems ` controls how they align horizontally.
@@ -196,12 +196,12 @@ vertically, `alignItems` controls how they align horizontally.
196
196
197
197
Accepts one of the following values:
198
198
199
- - `` ` auto `` (default)
200
- - `` `flexStart ``
201
- - `` `flexEnd ``
202
- - `` ` center ``
203
- - `` ` stretch ``
204
- - `` ` baseline ``
199
+ - `` # auto `` (default)
200
+ - `` #"flex-start" ``
201
+ - `` #"flex-end" ``
202
+ - `` # center ``
203
+ - `` # stretch ``
204
+ - `` # baseline ``
205
205
206
206
Controls how a child aligns in the cross direction, overriding the ` alignItems `
207
207
of the parent.
@@ -241,12 +241,12 @@ Number of logical pixels to offset the bottom edge of this component.
241
241
242
242
Accepts one of the following values:
243
243
244
- - `` `inherit_ `` (default)
245
- - `` ` ltr ``
246
- - `` ` rtl ``
244
+ - `` #inherit `` (default)
245
+ - `` # ltr ``
246
+ - `` # rtl ``
247
247
248
248
` direction ` specifies the directional flow of the user interface. The default is
249
- `` `inherit_ `` , except for root node which will have value based on the current
249
+ `` #inherit `` , except for root node which will have value based on the current
250
250
locale.
251
251
252
252
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/bottom )
@@ -260,8 +260,8 @@ Only for
260
260
261
261
Accepts one of the following values:
262
262
263
- - `` ` flex `` (default)
264
- - `` ` none ``
263
+ - `` # flex `` (default)
264
+ - `` # none ``
265
265
266
266
Sets the display type of this component. It works similarly to ` display ` in CSS,
267
267
but only supports ` flex ` and ` none ` .
@@ -312,10 +312,10 @@ Accepts a `margin`.
312
312
313
313
Accepts one of the following values:
314
314
315
- - `` ` row ``
316
- - `` `rowReverse ``
317
- - `` ` column `` (default)
318
- - `` `columnReverse ``
315
+ - `` # row ``
316
+ - `` #"row-reverse" ``
317
+ - `` # column `` (default)
318
+ - `` #"column-reverse" ``
319
319
320
320
` flexDirection ` controls which directions children of a container go. ` row ` goes
321
321
left to right, ` column ` goes top to bottom, and you may be able to guess what
@@ -342,8 +342,8 @@ Accepts a `float`.
342
342
343
343
Accepts one of the following values:
344
344
345
- - `` ` wrap `` (default)
346
- - `` ` nowrap ``
345
+ - `` # wrap `` (default)
346
+ - `` # nowrap ``
347
347
348
348
` flexWrap ` controls whether children can wrap around after they hit the end of a
349
349
flex container.
@@ -364,12 +364,12 @@ sets the height of this component.
364
364
365
365
Accepts one of the following values:
366
366
367
- - `` `flexStart `` (default)
368
- - `` `flexEnd ``
369
- - `` ` center ``
370
- - `` `spaceAround ``
371
- - `` `spaceBetween ``
372
- - `` `spaceEvenly ``
367
+ - `` #"flex-start" `` (default)
368
+ - `` #"flex-end" ``
369
+ - `` # center ``
370
+ - `` #"space-around" ``
371
+ - `` #"space-between" ``
372
+ - `` #"space-evenly" ``
373
373
374
374
` justifyContent ` aligns children in the main direction. For example, if children
375
375
are flowing vertically, ` justifyContent ` controls how they align vertically.
@@ -500,12 +500,12 @@ Minimum width for this component, in logical pixels.
500
500
501
501
Accepts one of the following values:
502
502
503
- - `` ` visible `` (default)
504
- - `` ` hidden ``
505
- - `` ` scroll ``
503
+ - `` # visible `` (default)
504
+ - `` # hidden ``
505
+ - `` # scroll ``
506
506
507
- ` overflow ` controls how children are measured and displayed. `` ` hidden ``
508
- causes views to be clipped while `` ` scroll `` causes views to be measured
507
+ ` overflow ` controls how children are measured and displayed. `` # hidden ``
508
+ causes views to be clipped while `` # scroll `` causes views to be measured
509
509
independently of their parents main axis.
510
510
511
511
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/overflow )
@@ -588,8 +588,8 @@ Setting `paddingVertical` is like setting both of `paddingTop` and
588
588
589
589
Accepts one of the following values:
590
590
591
- - `` ` absolute ``
592
- - `` ` relative `` (default)
591
+ - `` # absolute ``
592
+ - `` # relative `` (default)
593
593
594
594
` position ` in React Native is similar to regular CSS, but everything is set to
595
595
` relative ` by default, so ` absolute ` positioning is always just relative to the
@@ -815,8 +815,8 @@ style(~transform=[unsafeTransform({"translateZ": "0"})], ())
815
815
816
816
Accepts one of the following values:
817
817
818
- - `` ` visible ``
819
- - `` ` hidden ``
818
+ - `` # visible ``
819
+ - `` # hidden ``
820
820
821
821
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility )
822
822
@@ -936,8 +936,9 @@ When direction is `rtl`, `borderStartWidth` is equivalent to `borderRightWidth`.
936
936
937
937
Accepts one of the following values:
938
938
939
- - `` `solid `` (default)
940
- - `` `dotted ``
939
+ - `` #solid `` (default)
940
+ - `` #dotted ``
941
+ - `` #dashed ``
941
942
942
943
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/border-style )
943
944
@@ -1032,8 +1033,8 @@ Accepts a `float`.
1032
1033
1033
1034
Accepts one of the following values:
1034
1035
1035
- - `` ` normal `` (default)
1036
- - `` ` italic ``
1036
+ - `` # normal `` (default)
1037
+ - `` # italic ``
1037
1038
1038
1039
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/font-style )
1039
1040
@@ -1083,22 +1084,22 @@ Only accepts logical pixels.
1083
1084
1084
1085
Accepts one of the following values:
1085
1086
1086
- - `` ` auto `` (default)
1087
- - `` ` left ``
1088
- - `` ` right ``
1089
- - `` ` center ``
1090
- - `` ` justify ``
1087
+ - `` # auto `` (default)
1088
+ - `` # left ``
1089
+ - `` # right ``
1090
+ - `` # center ``
1091
+ - `` # justify ``
1091
1092
1092
1093
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/text-align )
1093
1094
1094
1095
#### ` textAlignVertical `
1095
1096
1096
1097
Accepts one of the following values:
1097
1098
1098
- - `` ` auto `` (default)
1099
- - `` ` top ``
1100
- - `` ` bottom ``
1101
- - `` ` center ``
1099
+ - `` # auto `` (default)
1100
+ - `` # top ``
1101
+ - `` # bottom ``
1102
+ - `` # center ``
1102
1103
1103
1104
#### ` textDecorationColor `
1104
1105
@@ -1110,21 +1111,21 @@ Accepts a `Color.t` (`string`).
1110
1111
1111
1112
Accepts one of the following values:
1112
1113
1113
- - `` ` none `` (default)
1114
- - `` ` underline ``
1115
- - `` `lineThrough ``
1116
- - `` `underlineLineThrough ``
1114
+ - `` # none `` (default)
1115
+ - `` # underline ``
1116
+ - `` #"line-through" ``
1117
+ - `` #"underline line-through" ``
1117
1118
1118
1119
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line )
1119
1120
1120
1121
#### ` textDecorationStyle `
1121
1122
1122
1123
Accepts one of the following values:
1123
1124
1124
- - `` ` solid ``
1125
- - `` ` double ``
1126
- - `` ` dotted ``
1127
- - `` ` dashed ``
1125
+ - `` # solid ``
1126
+ - `` # double ``
1127
+ - `` # dotted ``
1128
+ - `` # dashed ``
1128
1129
1129
1130
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-style )
1130
1131
@@ -1156,32 +1157,32 @@ You can see it as CSS `text-shadow` blur radius.
1156
1157
1157
1158
Accepts one of the following values:
1158
1159
1159
- - `` ` none `` (default)
1160
- - `` ` uppercase ``
1161
- - `` ` lowercase ``
1162
- - `` ` capitalize ``
1160
+ - `` # none `` (default)
1161
+ - `` # uppercase ``
1162
+ - `` # lowercase ``
1163
+ - `` # capitalize ``
1163
1164
1164
1165
- [ Web reference] ( https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform )
1165
1166
1166
1167
#### ` writingDirection `
1167
1168
1168
1169
Accepts one of the following values:
1169
1170
1170
- - `` ` auto `` (default)
1171
- - `` ` ltr ``
1172
- - `` ` rtl ``
1171
+ - `` # auto `` (default)
1172
+ - `` # ltr ``
1173
+ - `` # rtl ``
1173
1174
1174
1175
### Image Style Props
1175
1176
1176
1177
#### ` resizeMode `
1177
1178
1178
1179
Accepts one of the following values:
1179
1180
1180
- - `` ` cover ``
1181
- - `` ` contain ``
1182
- - `` ` stretch ``
1183
- - `` ` repeat ``
1184
- - `` ` center ``
1181
+ - `` # cover ``
1182
+ - `` # contain ``
1183
+ - `` # stretch ``
1184
+ - `` # repeat ``
1185
+ - `` # center ``
1185
1186
1186
1187
Similar to CSS ` background-size ` values
1187
1188
0 commit comments