Closed matiasbontempo closed 6 years ago
Yes , in iOS there is the problem. I can not fix this now, there is no IF of react-native to do it in iOS.
What do you mean by there is no IF of react-native?
I use Flatlist and the IF can only scroll to page left top
@wonday: what do you mean? is this an issue in JS or native side?
I'm experiencing the same with "react-native": "0.51.0"
and "react-native-pdf": "^3.0.3"
.
RN js has no IF to control it.
@wonday: isn't the problem that _onScaleChanged
calls scrollToOffset
and makes the contentOffset
loses it's reference from when it started zooming so it goes to 0
?
Perhaps using something like https://github.com/GuoChen-WHU/react-native-pinch-zoom-view can solve this.
@wonday: I believe I managed to get zooming in and out working by using react-native-zoomable and a few tweaks: https://gist.github.com/lucasbento/a159137da1c21cb52f06e39929c57707
In my case, I used a WebView on iOS.
I also used a WebView for iOS and it worked like a charm. I'm still using this package for Android.
Any updates to this?
untill v3.0.8 no updates about it.
@adderly the WebView alternative works fine. You can use it until this issue is solved.
@MatiasBontempo I did and it works greatly. I don't know how the caching works with webview ...
thought not perfect, v3.0.11 improve this zoom problem.
Zoom problem is active on iOS. Zoom doesn't work, only white space on left and right is bigger.
zoom still not smooth, I known it. other problem should be fixed. close it. if still has problem, please create a new one.
In iOS, when you zoom in a PDF and try to pan the view, it get's snapped to the top left. You can zoom out to unstuck it.
No issues detected in Android.