-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add drawerLockMode prop to DrawerLayoutAndroid
Summary:Closes #5270. Closes #5534 Differential Revision: D2970771 fb-gh-sync-id: 36a814032283df7d4c469964f803b8d20d1b0c93 shipit-source-id: 36a814032283df7d4c469964f803b8d20d1b0c93
- Loading branch information
1 parent
9ae3714
commit ec173b1
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec173b1
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.
@andybb this doesn't work in react-native@0.22.0. Did some one check it? i tried it in following manner. Am i missing something?
< DrawerLayoutAndroid
drawerLockMode = {'locked-closed'}
drawerWidth={R.constants.drawerMenu.width}
drawerPosition={DrawerLayoutAndroid.positions.Left}
ref={'drawer'}
renderNavigationView={() => navigationView}>
{this.props.children}
</ DrawerLayoutAndroid >
ec173b1
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.
drawerLockMode="locked-closed"
Doesn't work for me too. :/ec173b1
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.
@009dollar @djalmajr I'll take a look at it tonight.