-
public class TextLayoutManagerClass responsible of creating Spanned object for the JS representation of Text
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTextLayoutManager.SetSpanOperation
-
Method Summary
Modifier and Type Method Description static booleanisRTL(ReadableMap attributedString)static voidsetCachedSpannabledForTag(int reactTag, @NonNull() Spannable sp)static voiddeleteCachedSpannableForTag(int reactTag)static SpannablegetOrCreateSpannableForText(Context context, ReadableMap attributedString, @Nullable() ReactTextViewManagerCallback reactTextViewManagerCallback)static longmeasureText(Context context, ReadableMap attributedString, ReadableMap paragraphAttributes, float width, YogaMeasureMode widthYogaMeasureMode, float height, YogaMeasureMode heightYogaMeasureMode, ReactTextViewManagerCallback reactTextViewManagerCallback, @Nullable() Array<float> attachmentsPositions)static WritableArraymeasureLines(@NonNull() Context context, ReadableMap attributedString, ReadableMap paragraphAttributes, float width)-
-
Method Detail
-
isRTL
static boolean isRTL(ReadableMap attributedString)
-
setCachedSpannabledForTag
static void setCachedSpannabledForTag(int reactTag, @NonNull() Spannable sp)
-
deleteCachedSpannableForTag
static void deleteCachedSpannableForTag(int reactTag)
-
getOrCreateSpannableForText
static Spannable getOrCreateSpannableForText(Context context, ReadableMap attributedString, @Nullable() ReactTextViewManagerCallback reactTextViewManagerCallback)
-
measureText
static long measureText(Context context, ReadableMap attributedString, ReadableMap paragraphAttributes, float width, YogaMeasureMode widthYogaMeasureMode, float height, YogaMeasureMode heightYogaMeasureMode, ReactTextViewManagerCallback reactTextViewManagerCallback, @Nullable() Array<float> attachmentsPositions)
-
measureLines
static WritableArray measureLines(@NonNull() Context context, ReadableMap attributedString, ReadableMap paragraphAttributes, float width)
-
-
-
-