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

onPageSingleTap does not work when singlePage is set true.

Open suraj-ingle opened this issue 3 years ago • 1 comments

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%", }} />

suraj-ingle avatar Feb 23 '22 20:02 suraj-ingle

Any solution to this issue in sight?

waaierpaaier avatar Jul 04 '23 08:07 waaierpaaier