-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Add drawerGestureLock to DrawerLayoutAndroid #5880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Useful for developers that would like to lock the drawer, closed or opened (or unlocked by default) until drawer command is executed.
@@ -57,6 +59,7 @@ var DRAWER_STATES = [ | |||
* <DrawerLayoutAndroid | |||
* drawerWidth={300} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-trailing-spaces: Trailing spaces not allowed.
@avishayil updated the pull request. |
@avishayil updated the pull request. |
cc @mkonicek |
@@ -105,8 +110,11 @@ public void receiveCommand( | |||
@Override | |||
public @Nullable Map getExportedViewConstants() { | |||
return MapBuilder.of( | |||
"DrawerPosition", | |||
MapBuilder.of("Left", Gravity.START, "Right", Gravity.END)); | |||
"DrawerPosition", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Please keep the original indentation of 4 spaces.
What happens if the drawer is closed and the prop is set to |
Just saw a very similar PR: #5534 |
Closing since the other PR is now accepted. |
Useful for developers that would like to lock the drawer, closed or
opened (or unlocked by default) until drawer command is executed.