public class ReactModalHostManager extends ViewGroupManager<ReactModalHostView>
ReactModalHostView
components.mZIndexHash
PROP_TEST_ID
Constructor and Description |
---|
ReactModalHostManager(ReactApplicationContext context) |
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.util.Map<java.lang.String,java.lang.Object> |
getExportedViewConstants()
Returns a map of view-specific constants that are injected to JavaScript.
|
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 |
setTransparent(ReactModalHostView view,
boolean transparent) |
addView, addViews, getChildAt, getChildCount, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, reorderChildrenByZIndex, setViewZIndex, shouldPromoteGrandchildren, updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getNativeProps, receiveCommand, updateProperties
public ReactModalHostManager(ReactApplicationContext context)
public java.lang.String getName()
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 mose 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)
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>
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getExportedViewConstants()
ViewManager
getExportedViewConstants
in class ViewManager<ReactModalHostView,LayoutShadowNode>
protected void onAfterUpdateTransaction(ReactModalHostView view)
ViewManager
onAfterUpdateTransaction
in class ViewManager<ReactModalHostView,LayoutShadowNode>