Clearing the Cache of your React Native Project:
if you are sure the module exists, try this steps:
- Clear watchman watches:
npm watchman watch-del-all
- Delete node_modules:
rm -rf node_modules and run yarn install
- Reset Metro's cache:
yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-*