-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Add drawerLockMode prop to DrawerLayoutAndroid #5534
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
@@ -28,6 +28,7 @@ var INNERVIEW_REF = 'innerView'; | |||
var DrawerLayoutValidAttributes = { | |||
drawerWidth: true, | |||
drawerPosition: true, | |||
drawerLockMode: true |
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.
Is this needed?
By analyzing the blame information on this pull request, we identified @mkonicek, @kmagiera and @nicklockwood to be potential reviewers. |
@@ -96,6 +98,14 @@ var DrawerLayoutAndroid = React.createClass({ | |||
*/ | |||
drawerWidth: ReactPropTypes.number, | |||
/** | |||
* Specifies the lock mode of the drawer. |
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.
What is a lock mode? Can you add documentation understandable for someone who doesn't know anything about the Android Drawer?
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.
Better now?
fc5fee1
to
1f061ba
Compare
@andybb updated the pull request. |
DrawerConsts.DrawerLockMode.Unlocked, | ||
DrawerConsts.DrawerLockMode.LockedClosed, | ||
DrawerConsts.DrawerLockMode.LockedOpen | ||
]), |
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.
@nicklockwood was suggesting not to use constants. These could be just strings, e.g. - "open", "closed", "unlocked".
@andybb updated the pull request. |
@andybb Any updates? |
Let's merge this one after fixing the strings. |
👍 |
1f061ba
to
ec4724d
Compare
@andybb updated the pull request. |
@satya164 Done! |
@facebook-github-bot shipit |
Awesome! |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
Summary:Closes facebook#5270. Closes facebook#5534 Differential Revision: D2970771 fb-gh-sync-id: 36a814032283df7d4c469964f803b8d20d1b0c93 shipit-source-id: 36a814032283df7d4c469964f803b8d20d1b0c93
Closes #5270.