-
public class TextAttributeProps
-
-
Field Summary
Fields Modifier and Type Field Description public final static shortTA_KEY_FOREGROUND_COLORpublic final static shortTA_KEY_BACKGROUND_COLORpublic final static shortTA_KEY_OPACITYpublic final static shortTA_KEY_FONT_FAMILYpublic final static shortTA_KEY_FONT_SIZEpublic final static shortTA_KEY_FONT_SIZE_MULTIPLIERpublic final static shortTA_KEY_FONT_WEIGHTpublic final static shortTA_KEY_FONT_STYLEpublic final static shortTA_KEY_FONT_VARIANTpublic final static shortTA_KEY_ALLOW_FONT_SCALINGpublic final static shortTA_KEY_LETTER_SPACINGpublic final static shortTA_KEY_LINE_HEIGHTpublic final static shortTA_KEY_ALIGNMENTpublic final static shortTA_KEY_BEST_WRITING_DIRECTIONpublic final static shortTA_KEY_TEXT_DECORATION_COLORpublic final static shortTA_KEY_TEXT_DECORATION_LINEpublic final static shortTA_KEY_TEXT_DECORATION_STYLEpublic final static shortTA_KEY_TEXT_SHADOW_RADIUSpublic final static shortTA_KEY_TEXT_SHADOW_COLORpublic final static shortTA_KEY_IS_HIGHLIGHTEDpublic final static shortTA_KEY_LAYOUT_DIRECTIONpublic final static shortTA_KEY_ACCESSIBILITY_ROLEpublic final static intUNSET
-
Method Summary
Modifier and Type Method Description static TextAttributePropsfromMapBuffer(MapBuffer props)Build a TextAttributeProps using data from the MapBuffer received as a parameter. static TextAttributePropsfromReadableMap(ReactStylesDiffMap props)static intgetTextAlignment(ReactStylesDiffMap props, boolean isRTL)static intgetJustificationMode(ReactStylesDiffMap props)floatgetEffectiveLineHeight()floatgetLetterSpacing()static intgetLayoutDirection(@Nullable() String layoutDirection)static intgetTextBreakStrategy(@Nullable() String textBreakStrategy)static intgetHyphenationFrequency(@Nullable() String hyphenationFrequency)-
-
Method Detail
-
fromMapBuffer
static TextAttributeProps fromMapBuffer(MapBuffer props)
Build a TextAttributeProps using data from the MapBuffer received as a parameter.
-
fromReadableMap
static TextAttributeProps fromReadableMap(ReactStylesDiffMap props)
-
getTextAlignment
static int getTextAlignment(ReactStylesDiffMap props, boolean isRTL)
-
getJustificationMode
static int getJustificationMode(ReactStylesDiffMap props)
-
getEffectiveLineHeight
float getEffectiveLineHeight()
-
getLetterSpacing
float getLetterSpacing()
-
getLayoutDirection
static int getLayoutDirection(@Nullable() String layoutDirection)
-
getTextBreakStrategy
static int getTextBreakStrategy(@Nullable() String textBreakStrategy)
-
getHyphenationFrequency
static int getHyphenationFrequency(@Nullable() String hyphenationFrequency)
-
-
-
-