wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.59k stars 546 forks source link

Double Tap on pdf Zoom disable Issue #805

Open habibrayhan007 opened 8 months ago

habibrayhan007 commented 8 months ago

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 : 1) 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?

{ setTotalPages(numberOfPages); }} onPageChanged={onPageChanged} style={{ flex: 1, borderRadius: 10, }} />
Cedric921 commented 5 months ago

Hi @habibrayhan007 add this props enableDoubleTapZoom={false}

<Pdf 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, }} />