Answers for "navigation.openDrawer is not a function react native"

0

navigation.openDrawer is not a function react native

I think you should use the main navigation object obtained from useNavigation:

  const navigation = useNavigation();
  return (
     <Button transparent onPress={() => navigation.openDrawer()}>
        <Icon active name="menu"/>
     </Button>
  )
Posted by: Guest on February-09-2021

Code answers related to "navigation.openDrawer is not a function react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language