react-native-pdf
react-native-pdf copied to clipboard
onPageSingleTap does not work when singlePage is set true.
What react-native
version are you using?
0.66.3
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 :
onPageSingleTap
does not work when singlePage
is set true
. the call back is not being called on tapping on the pdf.
It works when I comment the singlePage
prop.
This is not a expected behavior. Could not find anything in the documentation mentioning about any such constrain.
Show us the code you are using?
The following code does not log 'page clicked '.
It works if I simply comment the singlePage
prop
<Pdf
source={{ uri: pdfLink }}
singlePage={true}
horizontal={true}
enablePaging={true}
onPageSingleTap={() => {
console.log('page clicked');
}}
onError={(error) => {
console.log(error);
}}
style={{ height: 200, width: "100%", }} />
Any solution to this issue in sight?