public class ReactTextShadowNode extends ReactBaseTextShadowNode
ReactBaseTextShadowNode concrete class for anchor Text node.
The class measures text in <Text> view and feeds native TextView using Spannable object constructed in superclass.
DEFAULT_TEXT_SHADOW_COLOR, mBackgroundColor, mColor, mContainsImages, mFontFamily, mFontStyle, mFontWeight, mHeightOfTallestInlineImage, mIncludeFontPadding, mIsBackgroundColorSet, mIsColorSet, mIsLineThroughTextDecorationSet, mIsUnderlineTextDecorationSet, mJustificationMode, mNumberOfLines, mTextAlign, mTextAttributes, mTextBreakStrategy, mTextShadowColor, mTextShadowOffsetDx, mTextShadowOffsetDy, mTextShadowRadius, mTextTransform, PROP_SHADOW_COLOR, PROP_SHADOW_OFFSET, PROP_SHADOW_OFFSET_HEIGHT, PROP_SHADOW_OFFSET_WIDTH, PROP_SHADOW_RADIUS, PROP_TEXT_TRANSFORM, UNSET| Constructor and Description |
|---|
ReactTextShadowNode() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVirtualAnchor()
Nodes that return
true will be treated as a root view for the virtual nodes tree. |
void |
markUpdated() |
void |
onBeforeLayout()
This method will be called by
UIManagerModule once per batch, before calculating
layout. |
void |
onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue)
Called after layout step at the end of the UI batch from
UIManagerModule. |
void |
setShouldNotifyOnTextLayout(boolean shouldNotifyOnTextLayout) |
setAllowFontScaling, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setIncludeFontPadding, setLetterSpacing, setLineHeight, setMaxFontSizeMultiplier, setNumberOfLines, setTextAlign, setTextBreakStrategy, setTextDecorationLine, setTextShadowColor, setTextShadowOffset, setTextShadowRadius, setTextTransform, spannedFromShadowNodesetAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidthaddChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtual, isYogaLeafNode, markLayoutSeen, markUpdateSeen, onAfterUpdateTransaction, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, 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, updatePropertiespublic void onBeforeLayout()
ReactShadowNodeImplUIManagerModule once per batch, before calculating
layout. Will be only called for nodes that are marked as updated with ReactShadowNodeImpl.markUpdated() or
require layouting (marked with ReactShadowNodeImpl.dirty()).onBeforeLayout in interface ReactShadowNode<ReactShadowNodeImpl>onBeforeLayout in class ReactShadowNodeImplpublic boolean isVirtualAnchor()
ReactShadowNodeImpltrue will be treated as a root view for the virtual nodes tree. It
means that NativeViewHierarchyManager will not try to perform manageChildren
operation on such views. Good example is InputText view that may have children Text nodes but this whole hierarchy will be mapped to a single android EditText view.isVirtualAnchor in interface ReactShadowNode<ReactShadowNodeImpl>isVirtualAnchor in class ReactShadowNodeImplpublic void markUpdated()
markUpdated in interface ReactShadowNode<ReactShadowNodeImpl>markUpdated in class ReactShadowNodeImplpublic void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue)
ReactShadowNodeImplUIManagerModule. May be used
to enqueue additional ui operations for the native view. Will only be called on nodes marked as
updated either with ReactShadowNodeImpl.dirty() or ReactShadowNodeImpl.markUpdated().onCollectExtraUpdates in interface ReactShadowNode<ReactShadowNodeImpl>onCollectExtraUpdates in class ReactShadowNodeImpluiViewOperationQueue - interface for enqueueing UI operationspublic void setShouldNotifyOnTextLayout(boolean shouldNotifyOnTextLayout)