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