navigation opendrawer is not a function react native

Solutions on MaxInterview for navigation opendrawer is not a function react native by the best coders in the world

showing results for - "navigation opendrawer is not a function react native"
Noemi
17 May 2017
1I think you should use the main navigation object obtained from useNavigation:
2
3  const navigation = useNavigation();
4  return (
5     <Button transparent onPress={() => navigation.openDrawer()}>
6        <Icon active name="menu"/>
7     </Button>
8  )