Package 

Class ReactBaseTextShadowNode

  • All Implemented Interfaces:
    com.facebook.react.uimanager.ReactShadowNode

    
    public abstract class ReactBaseTextShadowNode
    extends LayoutShadowNode
                        

    ReactShadowNode abstract class for spannable text nodes.

    This class handles all text attributes associated with {@code }-ish node. A concrete node can be an anchor {@code } node, an anchor {@code } node or virtual {@code * } node inside {@code } or {@code } node. Or even something else.

    This also node calculates Spannable object based on subnodes of the same type, which can be used in concrete classes to feed native views and compute layout.

    • Method Summary

      Modifier and Type Method Description
      void setNumberOfLines(int numberOfLines)
      void setLineHeight(float lineHeight)
      void setLetterSpacing(float letterSpacing)
      void setAllowFontScaling(boolean allowFontScaling)
      void setMaxFontSizeMultiplier(float maxFontSizeMultiplier)
      void setTextAlign(@Nullable() String textAlign)
      void setFontSize(float fontSize)
      void setColor(@Nullable() Integer color)
      void setBackgroundColor(@Nullable() Integer color)
      void setIsAccessibilityLink(@Nullable() String accessibilityRole)
      void setFontFamily(@Nullable() String fontFamily)
      void setFontWeight(@Nullable() String fontWeightString)
      void setFontVariant(@Nullable() ReadableArray fontVariantArray)
      void setFontStyle(@Nullable() String fontStyleString)
      void setIncludeFontPadding(boolean includepad)
      void setTextDecorationLine(@Nullable() String textDecorationLineString)
      void setTextBreakStrategy(@Nullable() String textBreakStrategy)
      void setTextShadowOffset(ReadableMap offsetMap)
      void setTextShadowRadius(float textShadowRadius)
      void setTextShadowColor(int textShadowColor)
      void setTextTransform(@Nullable() String textTransform)
      void setAdjustFontSizeToFit(boolean adjustsFontSizeToFit)
      void setMinimumFontScale(float minimumFontScale)
      • Methods inherited from class com.facebook.react.uimanager.LayoutShadowNode

        setAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setCollapsable, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setShouldNotifyPointerEnter, setShouldNotifyPointerLeave, setShouldNotifyPointerMove, setWidth
      • Methods inherited from class com.facebook.react.uimanager.ReactShadowNodeImpl

        addChildAt, addNativeChildAt, calculateLayout, calculateLayout, calculateLayoutOnChildren, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getFlex, getHeightMeasureSpec, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutParent, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeKind, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, getWidthMeasureSpec, hasNewLayout, hasUnseenUpdates, hasUpdates, hoistNativeChildren, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtual, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdateSeen, markUpdated, onAfterUpdateTransaction, onBeforeLayout, onCollectExtraUpdates, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLayoutParent, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setMeasureSpecs, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootTag, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties
      • Methods inherited from class com.facebook.react.uimanager.ReactShadowNode

        addChildAt, addNativeChildAt, dispatchUpdates, getChildAt, getLayoutParent, getNativeOffsetForChild, getNativeParent, getParent, indexOf, indexOfNativeChild, isDescendantOf, removeChildAt, removeNativeChildAt, setLayoutParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait