Double Tap on pdf Zoom disable Issue
habibrayhan007 opened this issue · comments
What react-native
version are you using?
"react-native": "0.72.4",
What react-native-pdf
version are you using?
"react-native-pdf": "^6.7.3",
What platform does your issue occur on? (android/ios/both)
Both
Describe your issue as precisely as possible :
- If I Double tap on pdf then It's Zoom in and Zoom Out. I want to disable double tap zoom functionality.
Is there any way?
Show us the code you are using?
<Pdf
ref={pdfRef}
source={{ uri: url }}
trustAllCerts={false}
fitPolicy={0}
enablePaging={true}
spacing={0}
onLoadComplete={(numberOfPages) => {
setTotalPages(numberOfPages);
}}
onPageChanged={onPageChanged}
style={{ flex: 1, borderRadius: 10, }}
/>
Hi @habibrayhan007
add this props enableDoubleTapZoom={false}
ref={pdfRef}
source={{ uri: url }}
trustAllCerts={false}
fitPolicy={0}
enablePaging={true}
enableDoubleTapZoom={false}
spacing={0}
onLoadComplete={(numberOfPages) => {
setTotalPages(numberOfPages);
}}
onPageChanged={onPageChanged}
style={{ flex: 1, borderRadius: 10, }}
/>