public class FabricUIManager extends java.lang.Object implements UIManager
ReactShadowNode
using the
Fabric API.Constructor and Description |
---|
FabricUIManager(ReactApplicationContext reactContext,
ViewManagerRegistry viewManagerRegistry) |
Modifier and Type | Method and Description |
---|---|
<T extends SizeMonitoringFrameLayout & MeasureSpecProvider> |
addRootView(T rootView)
Registers a new root view.
|
void |
appendChild(ReactShadowNode parent,
ReactShadowNode child)
Appends the child
ReactShadowNode to the children set of the parent
ReactShadowNode . |
void |
appendChildToSet(java.util.List<ReactShadowNode> childList,
ReactShadowNode child)
Adds the
ReactShadowNode to the List received by parameter. |
ReactShadowNode |
cloneNode(ReactShadowNode node) |
ReactShadowNode |
cloneNodeWithNewChildren(ReactShadowNode node) |
ReactShadowNode |
cloneNodeWithNewChildrenAndProps(ReactShadowNode node,
ReadableNativeMap newProps) |
ReactShadowNode |
cloneNodeWithNewProps(ReactShadowNode node,
ReadableNativeMap newProps) |
void |
completeRoot(int rootTag,
java.util.List<ReactShadowNode> childList) |
java.util.List<ReactShadowNode> |
createChildSet(int rootTag) |
ReactShadowNode |
createNode(int reactTag,
java.lang.String viewName,
int rootTag,
ReadableNativeMap props)
Creates a new
ReactShadowNode |
void |
removeRootView(int rootTag) |
void |
updateRootView(ReactShadowNode rootCSSNode,
int widthMeasureSpec,
int heightMeasureSpec)
Updates the styles of the
ReactShadowNode based on the Measure specs received by
parameters. |
public FabricUIManager(ReactApplicationContext reactContext, ViewManagerRegistry viewManagerRegistry)
@Nullable public ReactShadowNode createNode(int reactTag, java.lang.String viewName, int rootTag, ReadableNativeMap props)
ReactShadowNode
@Nullable public ReactShadowNode cloneNode(ReactShadowNode node)
ReactShadowNode
received by parameter. The cloned
ReactShadowNode will contain a copy of all the internal data of the original node, including
its children set (note that the children nodes will not be cloned).@Nullable public ReactShadowNode cloneNodeWithNewChildren(ReactShadowNode node)
ReactShadowNode
received by parameter. The cloned
ReactShadowNode will contain a copy of all the internal data of the original node, but
its children set will be empty.@Nullable public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, @Nullable ReadableNativeMap newProps)
ReactShadowNode
received by parameter. The cloned
ReactShadowNode will contain a copy of all the internal data of the original node, but its
props will be overridden with the ReadableMap
received by parameter.@Nullable public ReactShadowNode cloneNodeWithNewChildrenAndProps(ReactShadowNode node, ReadableNativeMap newProps)
ReactShadowNode
received by parameter. The cloned
ReactShadowNode will contain a copy of all the internal data of the original node, but its
props will be overridden with the ReadableMap
received by parameter and its children
set will be empty.@Nullable public void appendChild(ReactShadowNode parent, ReactShadowNode child)
ReactShadowNode
to the children set of the parent
ReactShadowNode
.public java.util.List<ReactShadowNode> createChildSet(int rootTag)
List
that will be used to append the
ReactShadowNode
elements of the root. Typically this List will contain one element.public void appendChildToSet(java.util.List<ReactShadowNode> childList, ReactShadowNode child)
ReactShadowNode
to the List
received by parameter.public void completeRoot(int rootTag, java.util.List<ReactShadowNode> childList)
public <T extends SizeMonitoringFrameLayout & MeasureSpecProvider> int addRootView(T rootView)
UIManager
addRootView
in interface UIManager
public void removeRootView(int rootTag)
public void updateRootView(ReactShadowNode rootCSSNode, int widthMeasureSpec, int heightMeasureSpec)
ReactShadowNode
based on the Measure specs received by
parameters.