1<Drawer.Navigator initialRouteName="Home" drawerContent={props => {
2 return (
3 <DrawerContentScrollView {...props}>
4 <DrawerItemList {...props} />
5 <DrawerItem label="Logout" onPress={() => props.navigation.navigate("Login")} />
6 </DrawerContentScrollView>
7 )
8 }}>
9 <Drawer.Screen name="Home" component={Home}/>
10 <Drawer.Screen name="New Project" component={NewProject} />
11 </Drawer.Navigator>
12