Reference
textShadowOffsetβ
| Type | Required |
|---|
| object: {width: number,height: number} | No |
fontSizeβ
fontStyleβ
| Type | Required |
|---|
| enum('normal', 'italic') | No |
fontWeightβ
Specifies font weight. The values 'normal' and 'bold' are supported for most fonts. Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen.
| Type | Required |
|---|
| enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900') | No |
lineHeightβ
textAlignβ
Specifies text alignment. The value 'justify' is only supported on iOS and fallbacks to left on Android.
| Type | Required |
|---|
| enum('auto', 'left', 'right', 'center', 'justify') | No |
textDecorationLineβ
| Type | Required |
|---|
| enum('none', 'underline', 'line-through', 'underline line-through') | No |
textShadowColorβ
fontFamilyβ
textShadowRadiusβ
includeFontPaddingβ
Set to false to remove extra font padding intended to make space for certain ascenders / descenders. With some fonts, this padding can make text look slightly misaligned when centered vertically. For best results also set textAlignVertical to center. Default is true.
| Type | Required | Platform |
|---|
| bool | No | Android |
textAlignVerticalβ
| Type | Required | Platform |
|---|
| enum('auto', 'top', 'bottom', 'center') | No | Android |
fontVariantβ
| Type | Required | Platform |
|---|
| array of enum('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums') | No | iOS |
letterSpacingβ
| Type | Required | Platform |
|---|
| number | No | iOS, Android >= 5.0 |
textDecorationColorβ
| Type | Required | Platform |
|---|
| color | No | iOS |
textDecorationStyleβ
| Type | Required | Platform |
|---|
| enum('solid', 'double', 'dotted', 'dashed') | No | iOS |
textTransformβ
| Type | Required |
|---|
| enum('none', 'uppercase', 'lowercase', 'capitalize') | No |
writingDirectionβ
| Type | Required | Platform |
|---|
| enum('auto', 'ltr', 'rtl') | No | iOS |