Open bitcrumb opened 6 months ago
Could somebody explain why we need to disable system-provided UITapGestureRecognizer
for the enableDoubleTapZoom
to work? If so, I could maybe come up with a suggested fix.
Since disabling all UITapGestureRecognizer
s (as currently is the case) seems like a very brutal approach (which breaks other things).
Same issue for me. in android it is working fine but in IOS on pressing on links or any events are not working.
Any luck on this?
Facing same issue
Same issue +1
Removing following enabled Links, Double Tap will stop working:
node_modules/react-native-pdf/ios/RNPDFPdf/RNPDFPdfView.mm
// Disable built-in double tap, so as not to conflict with custom recognizers.
- for (UIGestureRecognizer *recognizer in _pdfView.gestureRecognizers) {
- if ([recognizer isKindOfClass:[UITapGestureRecognizer class]]) {
- recognizer.enabled = NO;
- }
- }
- [_pdfView addGestureRecognizer:doubleTapEmptyRecognizer];
`
See my comment: https://github.com/wonday/react-native-pdf/pull/797#issuecomment-2124972455