halilb / react-native-photo-browser

Local and remote media gallery with captions, selections and grid view support for react native.
MIT License
724 stars 185 forks source link

bundling failed: UnableToResolveError: Unable to resolve module `react` #79

Open dhanababum opened 6 years ago

dhanababum commented 6 years ago

I did npm install

When I try to run react-native run-android, facing bellow issue

error: bundling failed: UnableToResolveError: Unable to resolve module react from /Users/user/react-native-photo-browser/lib/index.js: Module does not exist in the module map

This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.
EliteCRM commented 6 years ago

@dhanababum I get the same error. And then, installed this package in my project and also copy which Example demo into my project. Done that, you will get anther failed, you should have to obey this https://facebook.github.io/react-native/docs/linking-libraries-ios.html#content. That's all, you will run.

dhanababum commented 6 years ago

@EliteCRM Thanks