public class ReactModalHostManager extends ViewGroupManager<ReactModalHostView>
ReactModalHostView
components.NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
REACT_CLASS |
PROP_NATIVE_ID, PROP_TEST_ID
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
ReactModalHostManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
ReactModalHostView view)
Subclasses can override this method to install custom event emitters on the given View.
|
LayoutShadowNode |
createShadowNodeInstance()
This method should return a subclass of
ReactShadowNode which will be then used for
measuring position and size of the view. |
protected ReactModalHostView |
createViewInstance(ThemedReactContext reactContext)
Subclasses should return a new View instance of the proper type.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
java.lang.String |
getName() |
java.lang.Class<? extends LayoutShadowNode> |
getShadowNodeClass()
This method should return
Class instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance() . |
protected void |
onAfterUpdateTransaction(ReactModalHostView view)
Callback that will be triggered after all properties are updated in current update transaction
(all @ReactProp handlers for properties updated in current transaction have been called).
|
void |
onDropViewInstance(ReactModalHostView view)
Called when view is detached from view hierarchy and allows for some additional cleanup by
the
ViewManager subclass. |
void |
setAnimationType(ReactModalHostView view,
java.lang.String animationType) |
void |
setHardwareAccelerated(ReactModalHostView view,
boolean hardwareAccelerated) |
void |
setTransparent(ReactModalHostView view,
boolean transparent) |
addView, addViews, getChildAt, getChildCount, getViewZIndex, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
createShadowNodeInstance, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, receiveCommand, updateProperties
canOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroy
protected static final java.lang.String REACT_CLASS
public java.lang.String getName()
getName
in interface NativeModule
getName
in class ViewManager<ReactModalHostView,LayoutShadowNode>
protected ReactModalHostView createViewInstance(ThemedReactContext reactContext)
ViewManager
createViewInstance
in class ViewManager<ReactModalHostView,LayoutShadowNode>
public LayoutShadowNode 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 ViewGroupManager<ReactModalHostView>
public java.lang.Class<? extends LayoutShadowNode> 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 ViewGroupManager<ReactModalHostView>
Class
object that represents type of shadow node used by this view manager.public void onDropViewInstance(ReactModalHostView view)
ViewManager
ViewManager
subclass.onDropViewInstance
in class ViewManager<ReactModalHostView,LayoutShadowNode>
public void setAnimationType(ReactModalHostView view, java.lang.String animationType)
public void setTransparent(ReactModalHostView view, boolean transparent)
public void setHardwareAccelerated(ReactModalHostView view, boolean hardwareAccelerated)
protected void addEventEmitters(ThemedReactContext reactContext, ReactModalHostView view)
ViewManager
addEventEmitters
in class ViewManager<ReactModalHostView,LayoutShadowNode>
public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManager
getExportedCustomDirectEventTypeConstants
in class ViewManager<ReactModalHostView,LayoutShadowNode>
protected void onAfterUpdateTransaction(ReactModalHostView view)
ViewManager
onAfterUpdateTransaction
in class ViewManager<ReactModalHostView,LayoutShadowNode>