Last active
July 3, 2019 10:44
-
-
Save mehulgecg/7deb19ce647a9be804b63cf5a53ba824 to your computer and use it in GitHub Desktop.
React Native Drawer Navigator
This file contains hidden or 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 React, { Component } from 'react'; | |
| import { AppRegistry, Dimensions } from 'react-native'; | |
| import { DrawerNavigator } from 'react-navigation'; | |
| import SideMenu from './SideMenu/SideMenu' | |
| import stackNav from './app/stacknav'; | |
| const drawernav = DrawerNavigator({ | |
| Item1: { | |
| screen: stackNav, | |
| } | |
| }, { | |
| contentComponent: SideMenu, | |
| drawerWidth: Dimensions.get('window').width - 120, | |
| }); | |
| AppRegistry.registerComponent('Demo', () => drawernav); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment