Open xzdev opened 8 years ago
@xzdev I get the same crash :( Did you fix this?
@xzdev @vandervidi need to see your code to understand the problem.
Same problem +1
on zooming in and out it just crashed randomly :(
Same issue on zooming out to maximum!
same here
same
Same issue
Same here
+1
Same here, only for two Samsung devices.
+1
me too, any solution?
I found this: https://github.com/chrisbanes/PhotoView/issues/293
But I'm not sure how to apply, pretty new to react-native here...
EDIT: probably related to this too: https://github.com/alwx/react-native-photo-view/issues/22 but again, I'm not sure how to apply, it seems to suggest using another component
EDIT2:
Figured out the exception was due to bug inside android api and the common accepted workaround was to surround onInterceptTouchEvent
with try-catch block. A couple of pull-requests on react-native code base has been done, but none has been accepted yet. Current solution might need to fork the react-native code base, apply the fix, and rebuild.
. https://github.com/facebook/react-native/pull/13166 . https://github.com/facebook/react-native/pull/12085 . https://github.com/facebook/react-native/pull/17167 . https://facebook.github.io/react-native/docs/android-building-from-source.html
See https://issuetracker.google.com/issues/143448308, they won't fix it. ViewPager (1) is now also deprecated so move to ViewPager2.
Does anyone has the crash problem on Android. Here is my error log:
This could be the same Android ViewPager issue. The proposed way is to override onInterceptTouchEvent to catch the exception.