wonday / react-native-pdf

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

Default Progress Bar during loading doesn't show progress of loading #477

Open Reenagrg100 opened 4 years ago

Reenagrg100 commented 4 years ago

What react-native version are you using? 0.62.2 What react-native-pdf version are you using? 6.1.2 What platform does your issue occur on? (android/ios/both) android Describe your issue as precisely as possible : 1) implement react-native-pdf library in your project 2) Open a pdf of let say min 30mb 3) It only shows a line on the name of progress bar, it should see progress of loading of pdf (like

in %)

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

tlgync commented 4 years ago

Same problem +1 (especially android 9)

mutablestudio commented 4 years ago

same here - saw the error callback spitting out EACCES: permission denied so ran:

sudo chmod -R 777 node_modules/react-native-pdf/

seems to work now.

also, if you are setting state to show / hide the PDF based on a file read or download status, make sure you set the file path before updating the state - otherwise rn-pdf will complain of no valid file path.