Expo snack editor-React Navigation not working in the snack editor but working on my local machine????

I am creating an app which uses react-navigation to navigate between multiple screens. It has 3 setups: a drawer, switch, & stack navigator. Apparently, react-navigation works on my local machine, but it doesn’t work in the expo snack editor.

the code to my snack is here:

as you can see it says an error “Cannot redefine property: ThemeProvider”

If you execute the code on your local machine using expo you will see that no errors occur…

Any ideas on how I could fix this? Or is the expo snack editor always just bugged like this?

it actually worked… if i updated the version of react-navigation to 4.2.0 it works

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.