react-native-pdf icon indicating copy to clipboard operation
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

Open ajayranga opened this issue 2 years ago • 4 comments

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 :

  1. Steps to reproduce the issue or to explain in which case you get the issue
  2. 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); } }; `

Screenshot from 2023-01-03 15-39-10

ajayranga avatar Jan 03 '23 10:01 ajayranga

for 15 days it was working fine but getting error from yesterday

ajayranga avatar Jan 03 '23 10:01 ajayranga

This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o

BraveEvidence avatar Mar 08 '23 07:03 BraveEvidence