public class ReactDrawerLayoutManager extends ViewGroupManager<com.facebook.react.views.drawer.ReactDrawerLayout>
ReactDrawerLayout components.| Modifier and Type | Class and Description |
|---|---|
static class |
ReactDrawerLayoutManager.DrawerEventEmitter |
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_DRAWER |
static int |
OPEN_DRAWER |
protected static java.lang.String |
REACT_CLASS |
sStateDescriptionMETHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
ReactDrawerLayoutManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
com.facebook.react.views.drawer.ReactDrawerLayout view)
Subclasses can override this method to install custom event emitters on the given View.
|
void |
addView(com.facebook.react.views.drawer.ReactDrawerLayout parent,
android.view.View child,
int index)
This method is overridden because of two reasons: 1.
|
protected com.facebook.react.views.drawer.ReactDrawerLayout |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getCommandsMap()
Subclasses of
ViewManager that expect to receive commands through UIManagerModule.dispatchViewManagerCommand(int, com.facebook.react.bridge.Dynamic, com.facebook.react.bridge.ReadableArray) should override this method returning the map
between names of the commands and IDs that are then used in ViewManager.receiveCommand(T, int, com.facebook.react.bridge.ReadableArray) method
whenever the command is dispatched for this particular ViewManager. |
void |
getDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
float width) |
java.util.Map |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
java.util.Map |
getExportedViewConstants()
Returns a map of view-specific constants that are injected to JavaScript.
|
java.lang.String |
getName() |
boolean |
needsCustomLayoutForChildren()
Returns whether this View type needs to handle laying out its own children instead of deferring
to the standard css-layout algorithm.
|
void |
receiveCommand(com.facebook.react.views.drawer.ReactDrawerLayout root,
int commandId,
ReadableArray args)
Subclasses may use this method to receive events/commands directly from JS through the
UIManager. |
void |
receiveCommand(com.facebook.react.views.drawer.ReactDrawerLayout root,
java.lang.String commandId,
ReadableArray args)
Subclasses may use this method to receive events/commands directly from JS through the
UIManager. |
void |
setDrawerLockMode(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String drawerLockMode) |
void |
setDrawerPosition(com.facebook.react.views.drawer.ReactDrawerLayout view,
Dynamic drawerPosition) |
void |
setElevation(com.facebook.react.views.drawer.ReactDrawerLayout view,
float elevation) |
addViews, createShadowNodeInstance, getChildAt, getChildCount, getShadowNodeClass, getViewZIndex, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraDataonAfterUpdateTransaction, setAccessibilityActions, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLiveRegion, setAccessibilityRole, setBackgroundColor, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setViewState, setViewStates, setZIndexcreateShadowNodeInstance, createView, createViewInstance, getDelegate, getExportedCustomBubblingEventTypeConstants, getNativeProps, measure, onDropViewInstance, updateLocalData, updateProperties, updateStatecanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroyprotected static final java.lang.String REACT_CLASS
public static final int OPEN_DRAWER
public static final int CLOSE_DRAWER
public java.lang.String getName()
getName in interface NativeModulegetName in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>protected void addEventEmitters(ThemedReactContext reactContext, com.facebook.react.views.drawer.ReactDrawerLayout view)
ViewManageraddEventEmitters in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>protected com.facebook.react.views.drawer.ReactDrawerLayout createViewInstance(ThemedReactContext context)
ViewManagercreateViewInstance in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>public void setDrawerPosition(com.facebook.react.views.drawer.ReactDrawerLayout view,
Dynamic drawerPosition)
public void getDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
float width)
public void setDrawerLockMode(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String drawerLockMode)
public void setElevation(com.facebook.react.views.drawer.ReactDrawerLayout view,
float elevation)
setElevation in class BaseViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>public boolean needsCustomLayoutForChildren()
ViewGroupManagerneedsCustomLayoutForChildren in interface IViewManagerWithChildrenneedsCustomLayoutForChildren in class ViewGroupManager<com.facebook.react.views.drawer.ReactDrawerLayout>public java.util.Map<java.lang.String,java.lang.Integer> getCommandsMap()
ViewManagerViewManager that expect to receive commands through UIManagerModule.dispatchViewManagerCommand(int, com.facebook.react.bridge.Dynamic, com.facebook.react.bridge.ReadableArray) should override this method returning the map
between names of the commands and IDs that are then used in ViewManager.receiveCommand(T, int, com.facebook.react.bridge.ReadableArray) method
whenever the command is dispatched for this particular ViewManager.getCommandsMap in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>public void receiveCommand(com.facebook.react.views.drawer.ReactDrawerLayout root,
int commandId,
ReadableArray args)
ViewManagerUIManager. Good example of such a command would be scrollTo request with coordinates
for a ScrollView instance.
This method is deprecated use ViewManager.receiveCommand(View, String, ReadableArray) instead.
receiveCommand in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>root - View instance that should receive the commandcommandId - code of the commandargs - optional arguments for the commandpublic void receiveCommand(com.facebook.react.views.drawer.ReactDrawerLayout root,
java.lang.String commandId,
ReadableArray args)
ViewManagerUIManager. Good example of such a command would be scrollTo request with coordinates
for a ReactScrollView instance.receiveCommand in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>root - View instance that should receive the commandcommandId - code of the commandargs - optional arguments for the commandpublic java.util.Map getExportedViewConstants()
ViewManagergetExportedViewConstants in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>public java.util.Map getExportedCustomDirectEventTypeConstants()
ViewManagerReturned map should be of the form:
{
"onTwirl": {
"registrationName": "onTwirl"
}
}
getExportedCustomDirectEventTypeConstants in class BaseViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>public void addView(com.facebook.react.views.drawer.ReactDrawerLayout parent,
android.view.View child,
int index)
addView in class ViewGroupManager<com.facebook.react.views.drawer.ReactDrawerLayout>