public class ReactDrawerLayoutManager extends ViewGroupManager<com.facebook.react.views.drawer.ReactDrawerLayout> implements AndroidDrawerLayoutManagerInterface<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 |
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.
|
void |
closeDrawer(com.facebook.react.views.drawer.ReactDrawerLayout view) |
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. |
ViewManagerDelegate<com.facebook.react.views.drawer.ReactDrawerLayout> |
getDelegate()
Override this method and return an instance of
ViewManagerDelegate if the props of the
view managed by this view manager should be set via this delegate. |
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 |
openDrawer(com.facebook.react.views.drawer.ReactDrawerLayout view) |
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 |
setDrawerBackgroundColor(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Integer value) |
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 |
setDrawerPosition(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String value) |
void |
setDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
float width) |
void |
setDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Float width) |
void |
setElevation(com.facebook.react.views.drawer.ReactDrawerLayout view,
float elevation) |
void |
setKeyboardDismissMode(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String value) |
void |
setStatusBarBackgroundColor(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Integer value) |
addViews, createShadowNodeInstance, getChildAt, getChildCount, getShadowNodeClass, getViewZIndex, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraDataonAfterUpdateTransaction, setAccessibilityActions, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLiveRegion, setAccessibilityRole, setAccessibilityValue, setBackgroundColor, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setShadowColor, setTestId, setTransform, setTranslateX, setTranslateY, setViewState, setZIndexcreateShadowNodeInstance, createView, createViewInstance, getExportedCustomBubblingEventTypeConstants, getNativeProps, measure, onDropViewInstance, setPadding, updateProperties, updateStatecanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic 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,
java.lang.String value)
setDrawerPosition in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setDrawerPosition(com.facebook.react.views.drawer.ReactDrawerLayout view,
Dynamic drawerPosition)
public void setDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
float width)
public void setDrawerWidth(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Float width)
setDrawerWidth in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setDrawerLockMode(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String drawerLockMode)
setDrawerLockMode in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void openDrawer(com.facebook.react.views.drawer.ReactDrawerLayout view)
openDrawer in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void closeDrawer(com.facebook.react.views.drawer.ReactDrawerLayout view)
closeDrawer in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setKeyboardDismissMode(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.String value)
setKeyboardDismissMode in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setDrawerBackgroundColor(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Integer value)
setDrawerBackgroundColor in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setStatusBarBackgroundColor(com.facebook.react.views.drawer.ReactDrawerLayout view,
java.lang.Integer value)
setStatusBarBackgroundColor in interface AndroidDrawerLayoutManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>public void setElevation(com.facebook.react.views.drawer.ReactDrawerLayout view,
float elevation)
setElevation in interface BaseViewManagerInterface<com.facebook.react.views.drawer.ReactDrawerLayout>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>public ViewManagerDelegate<com.facebook.react.views.drawer.ReactDrawerLayout> getDelegate()
ViewManagerViewManagerDelegate if the props of the
view managed by this view manager should be set via this delegate. The provided instance will
then get calls to ViewManagerDelegate.setProperty(View, String, Object) for every prop
that must be updated and it's the delegate's responsibility to apply these values to the view.
By default this method returns null, which means that the view manager doesn't have
a delegate and the view props should be set internally by the view manager itself.
getDelegate in class ViewManager<com.facebook.react.views.drawer.ReactDrawerLayout,LayoutShadowNode>ViewManagerDelegate if the props of the view managed by this
view manager should be set via this delegate