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>
)
Also in JavaScript:
- two object combine together javascript
- javascript detect click outside element
- Write a javascript program to find roots of quadratic equation.
- import all images from folder reactjs
- react social login buttons
- higher order functions javascript
- multilone input react
- js string minus number
- alert user javascript
- how to validate date in react
- js match true false
- javascript toggle variable
- create react app in existing folder
- problem solving for loop in javascript
- button not exist js
- add jquery to wordpress
- how to create a server in node js
- javascript test if it is an array
- .fetch method
- check unique object in array javascript site:stackoverflow.com
- react function exec when button is clicked
- javascript format date yyyy-mm-dd hh:mm:ss to dd-mm-yyyy hh:mm am/pm
- react eslint prettier
- jquery validation prevent negative number