react-native-pdf
react-native-pdf copied to clipboard
Scrolling PDF is laggy on android but smooth on ios
What react-native
version are you using?
0.65.1
What react-native-pdf
version are you using?
6.4.0
What platform does your issue occur on? (android/ios/both) android
Describe your issue as precisely as possible :
- Steps to reproduce the issue or to explain in which case you get the issue
<View style={{ flex: 1 }}>
<ScrollView contentContainerStyle={{ flex: 1 }}>
<Pdf
source={{
uri,
cache: true,
}}
style={{ flex: 1 }}
onError={(error) => { console.error(error); }}
/>
</ScrollView>
</View>
Using the react-native-pdf package like above, tried with and without the surrounding View tag, but in android scrolling
behaviour is still choppy.
I've found a workararound, see: https://github.com/wonday/react-native-pdf/issues/448#issuecomment-1117216273
Adding a scrollView solves the scrolling issue, but then you lose the ability to pinch & zoom. Issue is still a problem
Any fixes for this, the pinch & zoom seems to be a problem. It seems to pinch on steps on android, iphone works correctly
Any luck on this?
Unfortunately not
Any luck on this?