alwx / react-native-photo-view

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

Unsupported top level event type "photoViewError" dispatched #131

Open roronoa89 opened 6 years ago

roronoa89 commented 6 years ago

I have this error ! Any ideas ?

image

computerjazz commented 6 years ago

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

roronoa89 commented 6 years ago

@computerjazz it's work ! thanks you

NySiya commented 6 years ago

@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.

kholiavko-roman commented 5 years ago

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

prakashnov07 commented 4 years ago

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

fredmanxu commented 2 years ago

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