This is a commonly faced issue on React Native. Normally with react-navigation.
.....However, this package itself specifies a `main` module field...
This happens whenever we try to install a new package without stopping the metro server.
Following are possible solutions for this issue :
- Go to the
iOSfolder and do
- Stop the metro server and restart it.
node_modulesdirectory and run
npm installto reinstall all dependencies.