public class ReactModalHostManager extends ViewGroupManager<ReactModalHostView>
ReactModalHostView components.NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REACT_CLASS |
sStateDescriptionMETHOD_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) |
java.lang.Object |
updateState(ReactModalHostView view,
ReactStylesDiffMap props,
StateWrapper stateWrapper)
Subclasses can implement this method to receive state updates shared between all instances of
this component type.
|
addView, addViews, getChildAt, getChildCount, getViewZIndex, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraDatasetAccessibilityActions, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLiveRegion, setAccessibilityRole, setBackgroundColor, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setViewState, setViewStates, setZIndexcreateShadowNodeInstance, createView, createViewInstance, getCommandsMap, getDelegate, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, measure, receiveCommand, receiveCommand, updateLocalData, updatePropertiescanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String REACT_CLASS
public java.lang.String getName()
getName in interface NativeModulegetName in class ViewManager<ReactModalHostView,LayoutShadowNode>protected ReactModalHostView createViewInstance(ThemedReactContext reactContext)
ViewManagercreateViewInstance in class ViewManager<ReactModalHostView,LayoutShadowNode>public LayoutShadowNode createShadowNodeInstance()
ViewManagerReactShadowNode 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 ReactShadowNodecreateShadowNodeInstance in class ViewGroupManager<ReactModalHostView>public java.lang.Class<? extends LayoutShadowNode> getShadowNodeClass()
ViewManagerClass 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)
ViewManagerViewManager 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)
ViewManageraddEventEmitters in class ViewManager<ReactModalHostView,LayoutShadowNode>public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManagerReturned map should be of the form:
{
"onTwirl": {
"registrationName": "onTwirl"
}
}
getExportedCustomDirectEventTypeConstants in class BaseViewManager<ReactModalHostView,LayoutShadowNode>protected void onAfterUpdateTransaction(ReactModalHostView view)
ViewManageronAfterUpdateTransaction in class BaseViewManager<ReactModalHostView,LayoutShadowNode>public java.lang.Object updateState(ReactModalHostView view, ReactStylesDiffMap props, StateWrapper stateWrapper)
ViewManagerupdateState in class ViewManager<ReactModalHostView,LayoutShadowNode>