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

On scrolling down or up page it shows blank screen and takes time to load

Open shafqatbarireporteq opened this issue 3 years ago • 1 comments

when scrolling down or up a page it shows a blank screen and takes time to load react-native-pdf

"react-native": "0.68.1" "react-native-pdf": "^6.5.0"

Issue on android PDF file loaded successfully but after that when scrolling a page, it shows a blank screen and after that page is loaded same when scrolling up a page. here is the video link Video Link And here is the code below

PDF Url I have also used the pdf file from phone storage but this issue remains

`const source = { uri: 'https://file-examples.com/storage/feddb42d8762894ad9bbbb0/2017/10/file-example_PDF_1MB.pdf', cache: true, expiration: 0 };

<Pdf trustAllCerts={false} page={pageNo} source={source} onLoadComplete={(numberOfPages, filePath) => {
console.log(Number of pages: ${numberOfPages}); }} onPageChanged={(page, numberOfPages) => { setPageNo(page) console.log(Current page: ${page}); }} onError={(error) => { console.log('OnErr Pdf >> ', error); }} onPressLink={(uri) => { console.log(Link pressed: ${uri}); }} style={styles.pdf} />`

shafqatbarireporteq avatar May 24 '22 10:05 shafqatbarireporteq

I have the same issue - any work around?

nikkizol avatar Nov 24 '23 10:11 nikkizol