react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

Unsupported top level event type "photoViewError" dispatched

Open roronoa89 opened this issue 7 years ago • 6 comments
trafficstars

I have this error ! Any ideas ?

image

roronoa89 avatar Dec 08 '17 16:12 roronoa89

I was getting this error until I removed the onLoad and onLoadEnd callbacks. Installing from master also caused it to go away, presumably because the code on master includes an onError callback.

Probably something to do with the supported message types and the message dispatched here: https://github.com/alwx/react-native-photo-view/blob/master/android/src/main/java/com/reactnative/photoview/PhotoView.java#L131-L133

computerjazz avatar Dec 08 '17 18:12 computerjazz

@computerjazz it's work ! thanks you

roronoa89 avatar Dec 11 '17 09:12 roronoa89

@computerjazz Thank so much for this answer. But I still got the same error after I click on Image 20 times. My zoomable image is in a Modal.

Here are my Scenario: I have a listing of items. Each item contain Zoomable image displaying in Modal. When I click on each item an image is displayed, then when I click on image it will pop up a Modal with Zoomable image in it. Then, I close the Modal and go back to my Listing items. I do that like 20 times. I got an Error saying Unsupported top level event type "photoViewError" dispatched.

NySiya avatar Mar 13 '18 05:03 NySiya

I install from master branch the latest version and onError now works.

kholiavko-roman avatar Dec 13 '18 15:12 kholiavko-roman

Hello Friends, how to install react-native-photo-view from master branch, thanks in advance .

prakashnov07 avatar Nov 23 '19 15:11 prakashnov07

Hello Friends, how to install react-native-photo-view from master branch, thanks in advance .

npm install https://github.com/alwx/react-native-photo-view.git

fredmanxu avatar May 20 '22 06:05 fredmanxu