public class ARTRenderableViewManager extends ViewManager<android.view.View,ReactShadowNode>
ARTSurfaceView
), this
"stubbed" ViewManager is used for all of them.NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_GROUP |
static java.lang.String |
CLASS_SHAPE |
static java.lang.String |
CLASS_TEXT |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Modifier and Type | Method and Description |
---|---|
static ARTRenderableViewManager |
createARTGroupViewManager() |
static ARTRenderableViewManager |
createARTShapeViewManager() |
static ARTRenderableViewManager |
createARTTextViewManager() |
ReactShadowNode |
createShadowNodeInstance()
This method should return a subclass of
ReactShadowNode which will be then used for
measuring position and size of the view. |
protected android.view.View |
createViewInstance(ThemedReactContext reactContext)
Subclasses should return a new View instance of the proper type.
|
java.lang.String |
getName() |
java.lang.Class<? extends ReactShadowNode> |
getShadowNodeClass()
This method should return
Class instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance() . |
void |
updateExtraData(android.view.View root,
java.lang.Object extraData)
Subclasses can implement this method to receive an optional extra data enqueued from the
corresponding instance of
ReactShadowNode in
ReactShadowNode.onCollectExtraUpdates(com.facebook.react.uimanager.UIViewOperationQueue) . |
addEventEmitters, createShadowNodeInstance, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, measure, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateLocalData, updateProperties
canOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroy
public static final java.lang.String CLASS_GROUP
public static final java.lang.String CLASS_SHAPE
public static final java.lang.String CLASS_TEXT
public static ARTRenderableViewManager createARTGroupViewManager()
public static ARTRenderableViewManager createARTShapeViewManager()
public static ARTRenderableViewManager createARTTextViewManager()
public java.lang.String getName()
getName
in interface NativeModule
getName
in class ViewManager<android.view.View,ReactShadowNode>
public ReactShadowNode createShadowNodeInstance()
ViewManager
ReactShadowNode
which will be then used for
measuring position and size of the view. In most of the cases this should just return an
instance of ReactShadowNode
createShadowNodeInstance
in class ViewManager<android.view.View,ReactShadowNode>
public java.lang.Class<? extends ReactShadowNode> getShadowNodeClass()
ViewManager
Class
instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance()
.
This method will be used in the bridge initialization phase to collect properties exposed using
ReactProp
(or ReactPropGroup
) annotation from the ReactShadowNode
subclass specific for native view this manager provides.getShadowNodeClass
in class ViewManager<android.view.View,ReactShadowNode>
Class
object that represents type of shadow node used by this view manager.protected android.view.View createViewInstance(ThemedReactContext reactContext)
ViewManager
createViewInstance
in class ViewManager<android.view.View,ReactShadowNode>
public void updateExtraData(android.view.View root, java.lang.Object extraData)
ViewManager
ReactShadowNode
in
ReactShadowNode.onCollectExtraUpdates(com.facebook.react.uimanager.UIViewOperationQueue)
.
Since css layout step and ui updates can be executed in separate thread apart of setting
x/y/width/height this is the recommended and thread-safe way of passing extra data from css
node to the native view counterpart.
TODO(7247021): Replace updateExtraData with generic update props mechanism after D2086999updateExtraData
in class ViewManager<android.view.View,ReactShadowNode>