wonday / react-native-pdf

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

PDF disappears after a while even with cache: 0 #696

Open jlump001 opened 2 years ago

jlump001 commented 2 years ago

What react-native version are you using? 0.63.3 What react-native-pdf version are you using? 6.5.0 What platform does your issue occur on? (android/ios/both) iOS Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue Upload PDF with react-native-document-picker -> open camera to scan documents -> PDF is now blank 2) Interesting logs Nothing in logs, it seems like it's just not able to find the file. I am using a physical iPhone 13 on iOS 16 and I know for a fact that the file is stored on the phone.

Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using? <Pdf source={{ uri: filePath?.toString(), }} style={styles.pdf} />

jlump001 commented 2 years ago

Edit to Steps to reproduce: It seems the PDF preview just disappears after a certain amount of time even with the prop expiration: 0.

jlump001 commented 2 years ago

@wonday