リファレンス
プロップ
color
fontFamily
fontSize
fontStyle
タイプ |
---|
enum('normal' , 'italic' ) (列挙型) |
fontWeight
フォントの太さを指定します。 'normal'
と 'bold'
の値は、ほとんどのフォントでサポートされています。すべてのフォントが各数値の変種を持っているわけではなく、その場合は最も近いものが選択されます。
タイプ | デフォルト |
---|
enum('normal' , 'bold' , '100' , '200' , '300' , '400' , '500' , '600' , '700' , '800' , '900' ) or number(数値) | 'normal' |
includeFontPadding
Android
特定のアセンダー/ディセンダーのためのスペースを作るための追加のフォントパディングを削除するには、false
に設定します。一部のフォントでは、このパディングにより、テキストを垂直方向に中央揃えしたときにわずかにずれて見える場合があります。最良の結果を得るには、textAlignVertical
も center
に設定します。
fontVariant
フォントのすべてのバリアントを設定できます。列挙型の配列またはスペース区切りの文字列(例:'small-caps common-ligatures'
)を使用して設定できます。
タイプ | デフォルト |
---|
array of enum('small-caps' , 'oldstyle-nums' , 'lining-nums' , 'tabular-nums' , 'proportional-nums' ) or string(文字列) | [] |
letterSpacing
文字間の間隔を増減します。デフォルトでは、文字間隔は追加されません。
lineHeight
テキスト要素内のテキスト行間の垂直方向の間隔を制御する数値。連続するテキスト行のベースライン間の距離を指定します。
textAlign
テキストの配置を指定します。Android では、値 'justify' は Oreo (8.0) 以降 (API レベル >= 26) でのみサポートされています。この値は、Android の下位バージョンでは left
にフォールバックします。
タイプ | デフォルト |
---|
enum('auto' , 'left' , 'right' , 'center' , 'justify' ) | 'auto' |
textAlignVertical (テキストの垂直方向の配置)
Android
タイプ | デフォルト |
---|
enum('auto' , 'top' , 'bottom' , 'center' ) | 'auto' |
textDecorationColor (テキスト装飾の色)
iOS
textDecorationLine
タイプ | デフォルト |
---|
enum('none' , 'underline' , 'line-through' , 'underline line-through' ) | 'none' |
textDecorationStyle (テキスト装飾のスタイル)
iOS
タイプ | デフォルト |
---|
enum('solid' , 'double' , 'dotted' , 'dashed' ) | 'solid' |
textShadowColor
textShadowOffset
タイプ |
---|
object: {width?: number, height?: number} (オブジェクト) |
textShadowRadius
textTransform
タイプ | デフォルト |
---|
enum('none' , 'uppercase' , 'lowercase' , 'capitalize' ) | 'none' |
verticalAlign (垂直方向の配置)
Android
タイプ | デフォルト |
---|
enum('auto' , 'top' , 'bottom' , 'middle' ) | 'auto' |
writingDirection (書き方向)
iOS
タイプ | デフォルト |
---|
enum('auto' , 'ltr' , 'rtl' ) | 'auto' |
userSelect
ユーザーがテキストを選択し、ネイティブのコピーアンドペースト機能を使用できるようにします。 selectable
プロパティよりも優先されます。
タイプ | デフォルト |
---|
enum('auto' , 'text' , 'none' , 'contain' , 'all' ) | none |