| Constructor and Description |
|---|
FabricUIManager(ReactApplicationContext reactContext,
ViewManagerRegistry viewManagerRegistry,
JavaScriptContextHolder jsContext,
EventDispatcher eventDispatcher) |
| 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,
long instanceHandle) |
ReactShadowNode |
cloneNodeWithNewChildren(ReactShadowNode node,
long instanceHandle) |
ReactShadowNode |
cloneNodeWithNewChildrenAndProps(ReactShadowNode node,
ReadableNativeMap newProps,
long instanceHandle) |
ReactShadowNode |
cloneNodeWithNewProps(ReactShadowNode node,
ReadableNativeMap newProps,
long instanceHandle) |
void |
completeRoot(int rootTag,
java.util.List<ReactShadowNode> childList) |
java.util.List<ReactShadowNode> |
createChildSet(int rootTag) |
long |
createEventTarget(int reactTag) |
ReactShadowNode |
createNode(int reactTag,
java.lang.String viewName,
int rootTag,
ReadableNativeMap props,
long instanceHandle)
Creates a new
ReactShadowNode |
void |
dispatchCommand(int reactTag,
int commandId,
ReadableArray commandArgs)
Dispatches the commandId received by parameter to the view associated with the reactTag.
|
void |
initialize()
This is called at the end of
CatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules. |
void |
invoke(long eventTarget,
java.lang.String name,
WritableMap params) |
void |
onCatalystInstanceDestroy()
Called before {CatalystInstance#onHostDestroy}
|
void |
registerEventHandler(long eventHandlerPointer) |
void |
releaseEventHandler(long eventHandlerPointer) |
void |
releaseEventTarget(long eventTargetPointer) |
void |
removeRootView(int rootTag) |
void |
setBinding(FabricBinding binding) |
void |
updateRootLayoutSpecs(int rootViewTag,
int widthMeasureSpec,
int heightMeasureSpec)
Updates the layout specs of the RootShadowNode based on the Measure specs received by
parameters.
|
public FabricUIManager(ReactApplicationContext reactContext, ViewManagerRegistry viewManagerRegistry, JavaScriptContextHolder jsContext, EventDispatcher eventDispatcher)
public void setBinding(FabricBinding binding)
@Nullable public ReactShadowNode createNode(int reactTag, java.lang.String viewName, int rootTag, ReadableNativeMap props, long instanceHandle)
ReactShadowNode@Nullable public ReactShadowNode cloneNode(ReactShadowNode node, long instanceHandle)
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, long instanceHandle)
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, long instanceHandle)
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, long instanceHandle)
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,
@Nullable
java.util.List<ReactShadowNode> childList)
public void dispatchCommand(int reactTag,
int commandId,
@Nullable
ReadableArray commandArgs)
UIManagerdispatchCommand in interface UIManagerreactTag - int that identifies the view that will receive this commandcommandId - int command idcommandArgs - ReadableArray parameters associated with the commandpublic <T extends SizeMonitoringFrameLayout & MeasureSpecProvider> int addRootView(T rootView)
UIManageraddRootView in interface UIManagerpublic void updateRootLayoutSpecs(int rootViewTag,
int widthMeasureSpec,
int heightMeasureSpec)
UIManagerupdateRootLayoutSpecs in interface UIManagerpublic void removeRootView(int rootTag)
@Nullable public long createEventTarget(int reactTag)
public void registerEventHandler(long eventHandlerPointer)
public void releaseEventTarget(long eventTargetPointer)
public void releaseEventHandler(long eventHandlerPointer)
public void invoke(long eventTarget,
java.lang.String name,
WritableMap params)
public void initialize()
JSIModuleCatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules.initialize in interface JSIModulepublic void onCatalystInstanceDestroy()
JSIModuleonCatalystInstanceDestroy in interface JSIModule