I want to navigate from one screen to another , how do i navigate ? Here is the code of my
- Required navigate to Screen
- Home screen
- stack navigator screen
[Source code](https://pastebin.com/rmNwkTjB)
It says cannot read property ‘navigate’ of undefined !
I tried fixing it , but cannot fix it , please help me.
2
Answers
please read carefully the document guide before ask the starter question:
https://reactnavigation.org/docs/getting-started/
Instead of passing navigation as props like this
Use the useNavigation hook to get to the navigation object