Props
Reference
Props
textShadowColor
color
fontSize
Type Required
ReactPropTypes.number No
fontStyle
Type Required
ReactPropTypes.oneOf(['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.
| ReactPropTypes.oneOf( ['normal' /default /, 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'] ) | No |
lineHeight
Type Required
ReactPropTypes.number No
textAlign
Specifies text alignment. The value 'justify' is only supported on iOS and fallbacks to left
on Android.
| ReactPropTypes.oneOf( ['auto' /default /, 'left', 'right', 'center', 'justify'] ) | No |
textDecorationLine
| ReactPropTypes.oneOf( ['none' /default /, 'underline', 'line-through', 'underline line-through'] ) | No |
fontFamily
Type Required
ReactPropTypes.string No
textShadowOffset
| ReactPropTypes.shape( {width: ReactPropTypes.number, height: ReactPropTypes.number} ) | No |
textShadowRadius
Type Required
ReactPropTypes.number No
textAlignVertical
| ReactPropTypes.oneOf( ['auto' /default /, 'top', 'bottom', 'center'] ) | No | Android |
letterSpacing
Type Required Platform
ReactPropTypes.number No iOS
textDecorationColor
Type Required Platform
color No iOS
textDecorationStyle
| ReactPropTypes.oneOf( ['solid' /default /, 'double', 'dotted','dashed'] ) | No | iOS |
writingDirection
| ReactPropTypes.oneOf( ['auto' /default /, 'ltr', 'rtl'] ) | No | iOS |