Created
August 26, 2017 20:39
-
-
Save dk0r/f9845169e647096ad4622c03071ab69a to your computer and use it in GitHub Desktop.
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
import DrawerLayout from 'react-native-drawer-layout' | |
import NavigationView from './NavigationView.js' | |
export default class DrawerContainer extends React.Component { | |
render() { | |
return ( | |
<DrawerLayout | |
drawerWidth={300} | |
drawerPosition={DrawerLayout.positions.Left} | |
renderNavigationView={() => NavigationView} | |
drawerLockMode={'locked-closed'} | |
ref={DrawerLayout => (this.drawer = DrawerLayout)} | |
/> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment