ReactTextShadowNode

ReactBaseTextShadowNode concrete class for anchor Text node.

The class measures text in <Text> view and feeds native TextView using Spannable object constructed in superclass.

Constructors

Link copied to clipboard
constructor()
constructor(@Nullable reactTextViewManagerCallback: ReactTextViewManagerCallback)

Properties

Link copied to clipboard
val DEFAULT_TEXT_SHADOW_COLOR: Int = 1426063360
Link copied to clipboard
val PROP_SHADOW_COLOR: String = "textShadowColor"
Link copied to clipboard
val PROP_SHADOW_OFFSET: String = "textShadowOffset"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val PROP_SHADOW_RADIUS: String = "textShadowRadius"
Link copied to clipboard
val PROP_TEXT_TRANSFORM: String = "textTransform"

Functions

Link copied to clipboard
abstract fun addChildAt(child: T, i: Int)
open fun addChildAt(child: ReactShadowNodeImpl, i: Int)
Link copied to clipboard
abstract fun addNativeChildAt(child: T, nativeIndex: Int)
fun addNativeChildAt(child: ReactShadowNodeImpl, nativeIndex: Int)
Adds a child that the native view hierarchy will have at this index in the native view corresponding to this node.
Link copied to clipboard
open fun calculateLayout()
open fun calculateLayout(width: Float, height: Float)
Link copied to clipboard
open fun dirty()
Link copied to clipboard
abstract fun dispatchUpdates(absoluteX: Float, absoluteY: Float, uiViewOperationQueue: UIViewOperationQueue, nativeViewHierarchyOptimizer: NativeViewHierarchyOptimizer)
open fun dispatchUpdates(absoluteX: Float, absoluteY: Float, uiViewOperationQueue: UIViewOperationQueue, @Nullable nativeViewHierarchyOptimizer: NativeViewHierarchyOptimizer)
Link copied to clipboard
open fun dispatchUpdatesWillChangeLayout(absoluteX: Float, absoluteY: Float): Boolean
Link copied to clipboard
open fun dispose()
Link copied to clipboard
abstract fun getChildAt(i: Int): T
Link copied to clipboard
Link copied to clipboard
open fun getFlex(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getNativeKind(): NativeKind
Link copied to clipboard
abstract fun getNativeOffsetForChild(child: T): Int
Returns the offset within the native children owned by all layout-only nodes in the subtree rooted at this node for the given child.
Link copied to clipboard
Link copied to clipboard
fun getPadding(spacingType: Int): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getScreenHeight(): Int
Link copied to clipboard
open fun getScreenWidth(): Int
Link copied to clipboard
open fun getScreenX(): Int
Link copied to clipboard
open fun getScreenY(): Int
Link copied to clipboard
Link copied to clipboard
fun getStylePadding(spacingType: Int): YogaValue
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
When constructing the native tree, nodes that return true will be treated as leaves.
Link copied to clipboard
abstract fun indexOf(child: T): Int
Link copied to clipboard
abstract fun indexOfNativeChild(nativeChild: T): Int
Link copied to clipboard
abstract fun isDescendantOf(ancestorNode: T): Boolean
open fun isDescendantOf(ancestorNode: ReactShadowNodeImpl): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isVirtual(): Boolean
Nodes that return true will be treated as "virtual" nodes.
Link copied to clipboard
Nodes that return true will be treated as a root view for the virtual nodes tree.
Link copied to clipboard
Nodes that return true will not manage (and and remove) child Yoga nodes.
Link copied to clipboard
Link copied to clipboard
open fun markUpdated()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onBeforeLayout(nativeViewHierarchyOptimizer: NativeViewHierarchyOptimizer)
This method will be called by UIManagerModule once per batch, before calculating layout.
Link copied to clipboard
open fun onCollectExtraUpdates(uiViewOperationQueue: UIViewOperationQueue)
Called after layout step at the end of the UI batch from UIManagerModule.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun removeChildAt(i: Int): T
Link copied to clipboard
Link copied to clipboard
open fun setAccessibilityRole(@Nullable accessibilityRole: String)
Link copied to clipboard
open fun setAdjustFontSizeToFit(adjustsFontSizeToFit: Boolean)
Link copied to clipboard
open fun setAlignContent(@Nullable alignContent: String)
open fun setAlignContent(alignContent: YogaAlign)
Link copied to clipboard
open fun setAlignItems(@Nullable alignItems: String)
open fun setAlignItems(alignItems: YogaAlign)
Link copied to clipboard
open fun setAlignSelf(@Nullable alignSelf: String)
open fun setAlignSelf(alignSelf: YogaAlign)
Link copied to clipboard
open fun setAllowFontScaling(allowFontScaling: Boolean)
Link copied to clipboard
open fun setAspectRatio(aspectRatio: Float)
Link copied to clipboard
Link copied to clipboard
open fun setBaselineFunction(baselineFunction: YogaBaselineFunction)
Link copied to clipboard
open fun setBorder(spacingType: Int, borderWidth: Float)
Link copied to clipboard
open fun setBorderWidths(index: Int, borderWidth: Float)
Link copied to clipboard
open fun setCollapsable(collapsable: Boolean)
Link copied to clipboard
open fun setCollapsableChildren(collapsableChildren: Boolean)
Link copied to clipboard
open fun setColor(@Nullable color: Integer)
Link copied to clipboard
open fun setColumnGap(columnGap: Dynamic)
open fun setColumnGap(columnGap: Float)
Link copied to clipboard
open fun setColumnGapPercent(percent: Float)
Link copied to clipboard
open fun setDefaultPadding(spacingType: Int, padding: Float)
Link copied to clipboard
open fun setDisplay(@Nullable display: String)
open fun setDisplay(display: YogaDisplay)
Link copied to clipboard
open fun setFlex(flex: Float)
Link copied to clipboard
open fun setFlexBasis(flexBasis: Dynamic)
open fun setFlexBasis(flexBasis: Float)
Link copied to clipboard
open fun setFlexBasisAuto()
Link copied to clipboard
open fun setFlexBasisPercent(percent: Float)
Link copied to clipboard
open fun setFlexDirection(@Nullable flexDirection: String)
open fun setFlexDirection(flexDirection: YogaFlexDirection)
Link copied to clipboard
open fun setFlexGrow(flexGrow: Float)
Link copied to clipboard
open fun setFlexShrink(flexShrink: Float)
Link copied to clipboard
open fun setFlexWrap(@Nullable flexWrap: String)
open fun setFlexWrap(wrap: YogaWrap)
Link copied to clipboard
open fun setFontFamily(@Nullable fontFamily: String)
Link copied to clipboard
open fun setFontSize(fontSize: Float)
Link copied to clipboard
open fun setFontStyle(@Nullable fontStyleString: String)
Link copied to clipboard
open fun setFontVariant(@Nullable fontVariantArray: ReadableArray)
Link copied to clipboard
open fun setFontWeight(@Nullable fontWeightString: String)
Link copied to clipboard
open fun setGap(gap: Dynamic)
open fun setGap(gap: Float)
Link copied to clipboard
open fun setGapPercent(percent: Float)
Link copied to clipboard
open fun setHeight(height: Dynamic)
Link copied to clipboard
open fun setIncludeFontPadding(includepad: Boolean)
Link copied to clipboard
open fun setInset(inset: Dynamic)
Link copied to clipboard
open fun setInsetBlock(index: Int, inset: Dynamic)
Link copied to clipboard
open fun setInsetInline(index: Int, inset: Dynamic)
Link copied to clipboard
fun setIsLayoutOnly(isLayoutOnly: Boolean)
Sets whether this node only contributes to the layout of its children without doing any drawing or functionality itself.
Link copied to clipboard
open fun setJustifyContent(@Nullable justifyContent: String)
open fun setJustifyContent(justifyContent: YogaJustify)
Link copied to clipboard
open fun setLayoutDirection(direction: YogaDirection)
Link copied to clipboard
abstract fun setLayoutParent(@Nullable layoutParent: T)
Link copied to clipboard
open fun setLetterSpacing(letterSpacing: Float)
Link copied to clipboard
open fun setLineHeight(lineHeight: Float)
Link copied to clipboard
open fun setLocalData(data: Any)
Link copied to clipboard
open fun setMargin(spacingType: Int, margin: Float)
Link copied to clipboard
open fun setMarginAuto(spacingType: Int)
Link copied to clipboard
open fun setMarginBlock(index: Int, margin: Dynamic)
Link copied to clipboard
open fun setMarginInline(index: Int, margin: Dynamic)
Link copied to clipboard
open fun setMarginPercent(spacingType: Int, percent: Float)
Link copied to clipboard
open fun setMargins(index: Int, margin: Dynamic)
Link copied to clipboard
open fun setMaxFontSizeMultiplier(maxFontSizeMultiplier: Float)
Link copied to clipboard
open fun setMaxHeight(maxHeight: Dynamic)
Link copied to clipboard
open fun setMaxWidth(maxWidth: Dynamic)
Link copied to clipboard
open fun setMeasureFunction(measureFunction: YogaMeasureFunction)
Link copied to clipboard
open fun setMeasureSpecs(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
open fun setMinHeight(minHeight: Dynamic)
Link copied to clipboard
open fun setMinimumFontScale(minimumFontScale: Float)
Link copied to clipboard
open fun setMinWidth(minWidth: Dynamic)
Link copied to clipboard
open fun setNumberOfLines(numberOfLines: Int)
Link copied to clipboard
open fun setOverflow(@Nullable overflow: String)
open fun setOverflow(overflow: YogaOverflow)
Link copied to clipboard
open fun setPadding(spacingType: Int, padding: Float)
Link copied to clipboard
open fun setPaddingBlock(index: Int, padding: Dynamic)
Link copied to clipboard
open fun setPaddingInline(index: Int, padding: Dynamic)
Link copied to clipboard
open fun setPaddingPercent(spacingType: Int, percent: Float)
Link copied to clipboard
open fun setPaddings(index: Int, padding: Dynamic)
Link copied to clipboard
open fun setPosition(@Nullable position: String)
open fun setPosition(spacingType: Int, position: Float)
Link copied to clipboard
open fun setPositionPercent(spacingType: Int, percent: Float)
Link copied to clipboard
open fun setPositionType(positionType: YogaPositionType)
Link copied to clipboard
open fun setPositionValues(index: Int, position: Dynamic)
Link copied to clipboard
open fun setReactTag(reactTag: Int)
Link copied to clipboard
open fun setRole(@Nullable role: String)
Link copied to clipboard
fun setRootTag(rootTag: Int)
Link copied to clipboard
open fun setRowGap(rowGap: Dynamic)
open fun setRowGap(rowGap: Float)
Link copied to clipboard
open fun setRowGapPercent(percent: Float)
Link copied to clipboard
open fun setShouldNotifyOnLayout(shouldNotifyOnLayout: Boolean)
Link copied to clipboard
open fun setShouldNotifyOnTextLayout(shouldNotifyOnTextLayout: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setStyleAspectRatio(aspectRatio: Float)
Link copied to clipboard
open fun setStyleHeight(heightPx: Float)
Link copied to clipboard
Link copied to clipboard
open fun setStyleHeightPercent(percent: Float)
Link copied to clipboard
open fun setStyleMaxHeight(widthPx: Float)
Link copied to clipboard
open fun setStyleMaxHeightPercent(percent: Float)
Link copied to clipboard
open fun setStyleMaxWidth(widthPx: Float)
Link copied to clipboard
open fun setStyleMaxWidthPercent(percent: Float)
Link copied to clipboard
open fun setStyleMinHeight(widthPx: Float)
Link copied to clipboard
open fun setStyleMinHeightPercent(percent: Float)
Link copied to clipboard
open fun setStyleMinWidth(widthPx: Float)
Link copied to clipboard
open fun setStyleMinWidthPercent(percent: Float)
Link copied to clipboard
open fun setStyleWidth(widthPx: Float)
Link copied to clipboard
Link copied to clipboard
open fun setStyleWidthPercent(percent: Float)
Link copied to clipboard
open fun setTextAlign(@Nullable textAlign: String)
Link copied to clipboard
open fun setTextBreakStrategy(@Nullable textBreakStrategy: String)
Link copied to clipboard
open fun setTextDecorationLine(@Nullable textDecorationLineString: String)
Link copied to clipboard
open fun setTextShadowColor(textShadowColor: Int)
Link copied to clipboard
open fun setTextShadowOffset(offsetMap: ReadableMap)
Link copied to clipboard
open fun setTextShadowRadius(textShadowRadius: Float)
Link copied to clipboard
open fun setTextTransform(@Nullable textTransform: String)
Link copied to clipboard
open fun setThemedContext(themedContext: ThemedReactContext)
Link copied to clipboard
fun setViewClassName(viewClassName: String)
Link copied to clipboard
open fun setWidth(width: Dynamic)
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Link copied to clipboard