react-native-pdf
react-native-pdf copied to clipboard
PDF was working for 15 days but suddenly start showing error ` [Error: DownloadFailed:https://***.pdf` after using it 15 days
What react-native
version are you using?
0.70.5
What react-native-pdf
version are you using?
^6.6.2
What platform does your issue occur on? (android/ios/both)
android/ios
Describe your issue as precisely as possible :
- Steps to reproduce the issue or to explain in which case you get the issue
- Interesting
logs
also sometimes error occurs but pdf shown
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?
` <Pdf style={styles.pdfViewer} source={{uri}} onLoadProgress={progress => console.log('Progress', progress)} onLoadComplete={() => setIsLoaded(true)} trustAllCerts={false} onError={handleError} />
const handleError = (e: any) => { console.log('error opening pdf ', e); if (showNotes) { Alert.alert('Cannot open pdf'); showPdfHandler(false); } }; `
for 15 days it was working fine but getting error from yesterday
This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o