Answers for "how to add abutton component to drawer in react native"

0

how to add abutton component to drawer in react native

<Drawer.Navigator initialRouteName="Home" drawerContent={props => {
    return (
      <DrawerContentScrollView {...props}>
        <DrawerItemList {...props} />
        <DrawerItem label="Logout" onPress={() => props.navigation.navigate("Login")} />
      </DrawerContentScrollView>
    )
  }}>
    <Drawer.Screen name="Home" component={Home}/>
    <Drawer.Screen name="New Project" component={NewProject} />
  </Drawer.Navigator>
Posted by: Guest on October-03-2020

Code answers related to "how to add abutton component to drawer in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language