Open Powersource opened 3 years ago
I got the same problem on web
/Users/X/XX/XXX/node_modules/react-native-image-viewing/dist/ImageViewing.js
Module not found: Can't resolve './components/ImageItem/ImageItem' in '/Users/X/XX/XXX/node_modules/react-native-image-viewing/dist'
Please help!
Just to check if supporting react-native-web is easy, I did the following changes:
node_modules/react-native-image-viewing/dist/components/ImageItem/ImageItem.android.js
to ImageItem.js
node_modules/react-native-image-viewing/dist/hooks/useImageDimensions.js
I changed Image.getSizeWithHeaders(source.uri, source.headers,
to Image.getSize(source.uri,
And it worked! In other words, supporting react-native-web in this repo is not too hard. I can make a PR, but wanted to inform about this already.
3 years for this issue, I need to reevaluate this, it seems this component is not ready for production
Would be nice. Right now I'm getting this error because it's missing a web implementation for ImageItem