public class FabricUIManagerModule extends ReactContextBaseJavaModule
Native module to allow JS to create and update native Views using Fabric API.
NativeModule.NativeMethodMETHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
FabricUIManagerModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendChild(int parent,
int child)
Appends the child
ReactShadowNode to the children set of the parent
ReactShadowNode. |
void |
appendChildToSet(int childSet,
int child) |
int |
cloneNode(int node) |
int |
cloneNodeWithNewChildren(int node) |
int |
cloneNodeWithNewChildrenAndProps(int node,
ReadableMap newProps) |
int |
cloneNodeWithNewProps(int node,
ReadableMap newProps) |
void |
completeRoot(int rootTag,
int childSet) |
int |
createChildSet() |
int |
createNode(int reactTag,
java.lang.String viewName,
int rootTag,
ReadableMap props,
int instanceHandle)
Creates a new
ReactShadowNode |
java.lang.String |
getName() |
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroypublic FabricUIManagerModule(ReactApplicationContext reactContext)
public int createNode(int reactTag,
java.lang.String viewName,
int rootTag,
ReadableMap props,
int instanceHandle)
ReactShadowNodepublic int cloneNode(int 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).public int cloneNodeWithNewChildren(int 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.public int cloneNodeWithNewProps(int node,
ReadableMap 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.public int cloneNodeWithNewChildrenAndProps(int node,
ReadableMap 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.public void appendChild(int parent,
int child)
ReactShadowNode to the children set of the parent
ReactShadowNode.public int createChildSet()
public void appendChildToSet(int childSet,
int child)
public void completeRoot(int rootTag,
int childSet)
public java.lang.String getName()
require() this module
from javascript.