-
- All Implemented Interfaces:
-
com.facebook.react.uimanager.ReactShadowNode
public class LayoutShadowNode extends ReactShadowNodeImpl
Supply setters for base view layout properties such as width, height, flex properties, borders, etc.
Checking for isVirtual everywhere is a hack to get around the fact that some virtual nodes still have layout properties set on them in JS: for example, a component that returns a may or may not be embedded in a parent text. There are better solutions that should probably be explored, namely using the VirtualText class in JS and setting the correct set of validAttributes
-
-
Constructor Summary
Constructors Constructor Description LayoutShadowNode()
-
Method Summary
Modifier and Type Method Description voidsetWidth(Dynamic width)voidsetMinWidth(Dynamic minWidth)voidsetCollapsable(boolean collapsable)voidsetMaxWidth(Dynamic maxWidth)voidsetHeight(Dynamic height)voidsetMinHeight(Dynamic minHeight)voidsetMaxHeight(Dynamic maxHeight)voidsetFlex(float flex)voidsetFlexGrow(float flexGrow)voidsetFlexShrink(float flexShrink)voidsetFlexBasis(Dynamic flexBasis)voidsetAspectRatio(float aspectRatio)voidsetFlexDirection(@Nullable() String flexDirection)voidsetFlexWrap(@Nullable() String flexWrap)voidsetAlignSelf(@Nullable() String alignSelf)voidsetAlignItems(@Nullable() String alignItems)voidsetAlignContent(@Nullable() String alignContent)voidsetJustifyContent(@Nullable() String justifyContent)voidsetOverflow(@Nullable() String overflow)voidsetDisplay(@Nullable() String display)voidsetMargins(int index, Dynamic margin)voidsetPaddings(int index, Dynamic padding)voidsetBorderWidths(int index, float borderWidth)voidsetPositionValues(int index, Dynamic position)voidsetPosition(@Nullable() String position)voidsetShouldNotifyOnLayout(boolean shouldNotifyOnLayout)voidsetShouldNotifyPointerEnter(boolean value)voidsetShouldNotifyPointerLeave(boolean value)voidsetShouldNotifyPointerMove(boolean value)-
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
-
-
Method Detail
-
setMinWidth
void setMinWidth(Dynamic minWidth)
-
setCollapsable
void setCollapsable(boolean collapsable)
-
setMaxWidth
void setMaxWidth(Dynamic maxWidth)
-
setMinHeight
void setMinHeight(Dynamic minHeight)
-
setMaxHeight
void setMaxHeight(Dynamic maxHeight)
-
setFlex
void setFlex(float flex)
-
setFlexGrow
void setFlexGrow(float flexGrow)
-
setFlexShrink
void setFlexShrink(float flexShrink)
-
setFlexBasis
void setFlexBasis(Dynamic flexBasis)
-
setAspectRatio
void setAspectRatio(float aspectRatio)
-
setFlexDirection
void setFlexDirection(@Nullable() String flexDirection)
-
setFlexWrap
void setFlexWrap(@Nullable() String flexWrap)
-
setAlignSelf
void setAlignSelf(@Nullable() String alignSelf)
-
setAlignItems
void setAlignItems(@Nullable() String alignItems)
-
setAlignContent
void setAlignContent(@Nullable() String alignContent)
-
setJustifyContent
void setJustifyContent(@Nullable() String justifyContent)
-
setOverflow
void setOverflow(@Nullable() String overflow)
-
setDisplay
void setDisplay(@Nullable() String display)
-
setMargins
void setMargins(int index, Dynamic margin)
-
setPaddings
void setPaddings(int index, Dynamic padding)
-
setBorderWidths
void setBorderWidths(int index, float borderWidth)
-
setPositionValues
void setPositionValues(int index, Dynamic position)
-
setPosition
void setPosition(@Nullable() String position)
-
setShouldNotifyOnLayout
void setShouldNotifyOnLayout(boolean shouldNotifyOnLayout)
-
setShouldNotifyPointerEnter
void setShouldNotifyPointerEnter(boolean value)
-
setShouldNotifyPointerLeave
void setShouldNotifyPointerLeave(boolean value)
-
setShouldNotifyPointerMove
void setShouldNotifyPointerMove(boolean value)
-
-
-
-