Cannot scroll when drag starts on document
What react-native version are you using?
0.57.8
What react-native-pdf version are you using?
5.0.11
What platform does your issue occur on? (android/ios/both)
Both
Describe your issue as precisely as possible:
1) Steps to reproduce the issue or to explain in which case you get the issue
Initially dragging within the PDF document does not allow scrolling. Dragging outside of the PDF document (but inside the <Pdf> component) allows scrolling of the PDF. If you drag outside of the PDF and the document is scrolling, you can click inside the PDF to continue scrolling.
Join a screenshot or video of the problem on the simulator or device? https://streamable.com/nbzxg
Show us the code you are using?
<Pdf styles={pdfStyles.pdf} source={source} />
const pdfStyles = StyleSheet.create({
pdf: {
flex:1,
width:Dimensions.get('window').width,
}
});```
any solution for this issue?
i'm having this issue in android too.
i'm having this issue in ios10 too
@trucnd Unfortunately not - I ended up using an alternative PDF package.
You can add a "hack" View above your pdf to make it work
<View>
<View
style={{
zIndex: 1,
position: 'absolute',
backgroundColor: 'transparent',
height: // height of your pdf component
width: // width of your pdf component
}}
/>
<Pdf
...
/>
</View>