Search
 
SCRIPT & CODE EXAMPLE
 

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>
  )
Comment

PREVIOUS NEXT
Code Example
Javascript :: jQuery on right mouse click 
Javascript :: ejs variable 
Javascript :: js cut string after last char 
Javascript :: javascript random integer 
Javascript :: how to check the extension of a file in javascript 
Javascript :: drupal 8 check if current page is node 
Javascript :: play audio with js 
Javascript :: File type node js 
Javascript :: css and js on flask 
Javascript :: javascript capitalize first letter of each word 
Javascript :: set multiple attributes css javascript 
Javascript :: placeholder value js 
Javascript :: input type password react native 
Javascript :: videojs cdn 
Javascript :: jquery event keycode 
Javascript :: js add to array if not exists 
Javascript :: datatables add row 
Javascript :: mui switch colours 
Javascript :: mat checkbox change event in angular 7 
Javascript :: set date to input date js 
Javascript :: javascript remove property from object 
Javascript :: agregar clase en jquery 
Javascript :: copy to clipboard javascript dom 
Javascript :: regex is empty string javascript 
Javascript :: array to excel javascript 
Javascript :: js text word wrap 
Javascript :: node js server get images from folder 
Javascript :: react native slow performance after load iamges 
Javascript :: how to find all permutations of an array with javascript 
Javascript :: indexOf by object key 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =