Created
August 27, 2017 16:51
-
-
Save anonymous/4d2fda0e9de87ef73187283f797ed1ec 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
export default class DrawerContainer extends Component { | |
render() { | |
return ( | |
<DrawerLayout | |
ref={drawerLayout => (this.drawer = drawerLayout)} | |
drawerWidth={300} | |
drawerPosition={DrawerLayout.positions.Left} | |
//this renders the content of the slide out drawer | |
renderNavigationView={() => | |
<Home {...this.props} drawer={this.drawer} />} | |
> | |
//This is the Home screen which contains the drawer open button | |
<Home {...this.props} drawer={this.drawer} /> | |
</DrawerLayout> | |
) | |
} | |
} |
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
export default class Home extends Component { | |
render() { | |
return ( | |
<View style={styles.menu}> | |
<TeamMenu {...this.props} /> | |
</View> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment