-
public class TextAttributeProps
-
-
Field Summary
Fields Modifier and Type Field Description public final static short
TA_KEY_FOREGROUND_COLOR
public final static short
TA_KEY_BACKGROUND_COLOR
public final static short
TA_KEY_OPACITY
public final static short
TA_KEY_FONT_FAMILY
public final static short
TA_KEY_FONT_SIZE
public final static short
TA_KEY_FONT_SIZE_MULTIPLIER
public final static short
TA_KEY_FONT_WEIGHT
public final static short
TA_KEY_FONT_STYLE
public final static short
TA_KEY_FONT_VARIANT
public final static short
TA_KEY_ALLOW_FONT_SCALING
public final static short
TA_KEY_LETTER_SPACING
public final static short
TA_KEY_LINE_HEIGHT
public final static short
TA_KEY_ALIGNMENT
public final static short
TA_KEY_BEST_WRITING_DIRECTION
public final static short
TA_KEY_TEXT_DECORATION_COLOR
public final static short
TA_KEY_TEXT_DECORATION_LINE
public final static short
TA_KEY_TEXT_DECORATION_STYLE
public final static short
TA_KEY_TEXT_SHADOW_RADIUS
public final static short
TA_KEY_TEXT_SHADOW_COLOR
public final static short
TA_KEY_IS_HIGHLIGHTED
public final static short
TA_KEY_LAYOUT_DIRECTION
public final static short
TA_KEY_ACCESSIBILITY_ROLE
public final static int
UNSET
-
Method Summary
Modifier and Type Method Description static TextAttributeProps
fromMapBuffer(MapBuffer props)
Build a TextAttributeProps using data from the MapBuffer received as a parameter. static TextAttributeProps
fromReadableMap(ReactStylesDiffMap props)
static int
getTextAlignment(ReactStylesDiffMap props, boolean isRTL)
static int
getJustificationMode(ReactStylesDiffMap props)
float
getEffectiveLineHeight()
float
getLetterSpacing()
static int
getLayoutDirection(@Nullable() String layoutDirection)
static int
getTextBreakStrategy(@Nullable() String textBreakStrategy)
static int
getHyphenationFrequency(@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)
-
-
-
-