Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

andreasdri
Copy link
Contributor

Closes #5270.

@@ -28,6 +28,7 @@ var INNERVIEW_REF = 'innerView';
var DrawerLayoutValidAttributes = {
drawerWidth: true,
drawerPosition: true,
drawerLockMode: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @mkonicek, @kmagiera and @nicklockwood to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jan 25, 2016
@@ -96,6 +98,14 @@ var DrawerLayoutAndroid = React.createClass({
*/
drawerWidth: ReactPropTypes.number,
/**
* Specifies the lock mode of the drawer.
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better now?

@andreasdri andreasdri force-pushed the drawerlayout-lockmode branch from fc5fee1 to 1f061ba Compare January 28, 2016 09:54
@facebook-github-bot
Copy link
Contributor

@andybb updated the pull request.

DrawerConsts.DrawerLockMode.Unlocked,
DrawerConsts.DrawerLockMode.LockedClosed,
DrawerConsts.DrawerLockMode.LockedOpen
]),
Copy link
Contributor

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".

@facebook-github-bot
Copy link
Contributor

@andybb updated the pull request.

@satya164
Copy link
Contributor

@andybb Any updates?

@andreasdri
Copy link
Contributor Author

@satya164 I can rewrite to strings, but what about #5880? Almost the same.

@satya164
Copy link
Contributor

Let's merge this one after fixing the strings.

@mkonicek
Copy link
Contributor

👍

@andreasdri andreasdri force-pushed the drawerlayout-lockmode branch from 1f061ba to ec4724d Compare February 23, 2016 20:13
@facebook-github-bot
Copy link
Contributor

@andybb updated the pull request.

@andreasdri
Copy link
Contributor Author

@satya164 Done!

@satya164
Copy link
Contributor

@facebook-github-bot shipit

@satya164
Copy link
Contributor

Awesome!

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in ec173b1 Feb 24, 2016
pglotov pushed a commit to pglotov/react-native that referenced this pull request Mar 15, 2016
Summary:Closes facebook#5270.
Closes facebook#5534

Differential Revision: D2970771

fb-gh-sync-id: 36a814032283df7d4c469964f803b8d20d1b0c93
shipit-source-id: 36a814032283df7d4c469964f803b8d20d1b0c93
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants