react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Scaling PDF inside an Animated.View doesn't rerender the PDF

Open oliverandrich opened this issue 4 years ago • 0 comments

What react-native version are you using? 0.63.4 What react-native-pdf version are you using? 6.3.0

What platform does your issue occur on? (android/ios/both) android

Describe your issue as precisely as possible : I am using react-native-pdf as a simple PDF Viewer and disabled the integrated pinch, zoom and pan handlers with the parameter singlepage. The reason is, that I need to layer clickable boxes layered above the pdf and also place neighboring pages next to each other. I am building a newspaper reader using react-native-pdf. Pinch, pan and double tap handling is implemented using react-native-gesture-handler.

On iOS this works like a charm. If I scale the Animated.View where the PDF is placed on. The pdf file get rerendered at a different scale. On Android this doesn't happen. Is this is a special behaviour of the iOS PDF Toolkit or is it a specific problem on Android? Or can I enforce the rerendering on Android somehow?

Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?

oliverandrich avatar May 11 '21 15:05 oliverandrich