What react-native-pdf version are you using?
6.1.1
What platform does your issue occur on? (android/ios/both)
Feature Jump to a specific page, pinch zoom, and double-tap zoom didn't work on iOS 10 and below
All the functions running well on iOS 11 and above
Steps to reproduce the issue:
1) download PDF
2) jump to specific page (didn't change at all)
3) zoom also didn't work as well (nothing happened)
Join a screenshot or video of the problem on the simulator or device?
What
react-native
version are you using? 0.60.4What
react-native-pdf
version are you using? 6.1.1What platform does your issue occur on? (android/ios/both) Feature Jump to a specific page, pinch zoom, and double-tap zoom didn't work on iOS 10 and below All the functions running well on iOS 11 and above
Steps to reproduce the issue: 1) download PDF 2) jump to specific page (didn't change at all) 3) zoom also didn't work as well (nothing happened)
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using? <Pdf ref={(pdf) => { this.pdf = pdf; }} source={source} horizontal={true} maxScale={6} minScale={1} scale={1} enableAntialiasing={true} enablePaging={false} spacing={Platform.OS=='android' ? this.state.width (15 / 100) : this.state.width (10 / 100)} onLoadComplete={(numberOfPages, path, {width, height}, tableContents) => { this.setState({ numberOfPages: numberOfPages }) if (this.state.firstLoad) { this.refs.asyncHelper._getData('SAVED_PAGE',value=>{ if (value != null) { this.setState({ savedPage: JSON.parse(value), firstLoad: false }) this._jumpSavedPage(JSON.parse(value)) } }) } }} onPageChanged={(page, numberOfPages)=>{ if (this.state.isLandscape != DeviceInfo.isLandscape()) { this.pdf.setPage(this.state.currentPage) this.setState({ isLandscape: DeviceInfo.isLandscape() }) } else { if (this.state.currentPage != page) { if (Platform.OS == 'android') { this.setState({ currentPage: page }) } else { if (!(this.state.currentPage == 1 && page == numberOfPages / 2)) { this.setState({ currentPage: page }) } } } } this._savePageAsync(page) }} onError={(error)=>{ Alert.alert("PDF file is corrupted, please delete and re-download."); }} onPressLink={(uri)=>{ Linking.openURL(uri); }} />