Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
  )
 
PREVIOUS NEXT
Tagged: #function #react #native
ADD COMMENT
Topic
Name
9+7 =