Search code examples
typescriptreact-nativereact-navigationreact-navigation-stack

React native, I'm not able to navigate between screens


I am following the react navigation documentation. I did all the installations. I'm using react native expo in the latest version (0.63). When I create a screen or create a function from within app.tsx, I have the following problem.

enter image description here


Solution

  • As described here, you can do the following:

    ...
    function HomeScreen({ navigation }: { navigation: any} {
    ...