Closed ld234 closed 6 years ago
I finally figured out the problem. I was not able to read from internal storage because I did have the right permission. See PermissionsAndroid for more details.
Thanks for update, I readme is updated. Btw, you can check demo project, there is implementation for PermissionsAndroid.
I followed exactly the example code. It works for resource type
url
but does not work forfile
. I dragged a file from my computer into the AVD and it says that the file is stored in/sdcard/Download
. When I go to the Internal storage/Download folder, I do see the file in there. But it just does not appear in my app. Here is my code.My environment:
react-native
: ~0.55.2react-native-view-pdf
: ^0.4.1android/app/build.gradle