React-Navigation missing dependencies

I am pasting some code I run in my computer for react-navigation. But I end up with this error when trying to run it

It seems there are some dependencies missing to be able to use react-navigation code in the app.

Hi @calitb :wave:

Thank you for reporting. Could you share the list of dependencies you use in your project?

Hi there, I am sharing a small project with the issue in case it helps.

playdotjs://df8094e3

It should work with these dependencies:
“react-navigation”: “^4.0.10”,
“react-native-gesture-handler”: “^1.4.1”,

Hi @calitb :wave:

The problem is that play.js only includes react-navigation and not react-native-gesture-handler. I will consider adding that dependency to the app :slightly_smiling_face:.

Thanks for reporting!

Oh great, I hope those dependencies get to make the cut in next releases.

There are more required dependencies to make react-navigation work, according to the starting guide https://reactnavigation.org/docs/en/getting-started.html :

react-native-gesture-handler
react-native-reanimated
react-native-screens

react-native-safe-area-context (according to the “Install into an existing project” section)