Expo Docs

Text Style Props


Reference

TypeRequired
object: {width: number,height: number}No

TypeRequired
colorNo

TypeRequired
numberNo

TypeRequired
enum('normal', 'italic')No

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.
TypeRequired
enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')No

TypeRequired
numberNo

Specifies text alignment. The value 'justify' is only supported on iOS and fallbacks to left on Android.
TypeRequired
enum('auto', 'left', 'right', 'center', 'justify')No

TypeRequired
enum('none', 'underline', 'line-through', 'underline line-through')No

TypeRequired
colorNo

TypeRequired
stringNo

TypeRequired
numberNo

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.
TypeRequiredPlatform
boolNoAndroid

TypeRequiredPlatform
enum('auto', 'top', 'bottom', 'center')NoAndroid

TypeRequiredPlatform
array of enum('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums')NoiOS

TypeRequiredPlatform
numberNoiOS

TypeRequiredPlatform
colorNoiOS

TypeRequiredPlatform
enum('solid', 'double', 'dotted', 'dashed')NoiOS

TypeRequiredPlatform
enum('none', 'uppercase', 'lowercase', 'capitalize')NoiOS

TypeRequiredPlatform
enum('auto', 'ltr', 'rtl')NoiOS