alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
816 stars 435 forks source link

Problem with assembleRelease on Android #85

Closed aterribili closed 3 years ago

aterribili commented 6 years ago

I'm getting the problem below when trying to generate signed apk:

Unable to resolve module `react-native/Libraries/Components/View/ViewPropTypes` from `~/my-project/node_modules/react-native-photo-view/PhotoView.android.js`: Module does not exist in the module map or in these directories:
  ~/my-project/node_modules/react-native/Libraries/Components/View

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 packager cache: `rm -fr $TMPDIR/react-*` or `npm start --reset-cache`.

:app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

Version of react-native-photo-view = 1.4.0