Open iamthomasjames opened 3 years ago
same here.
Please help us fix this issue
This happens for Android API level 29 +. Works fine for API level 28.
@TayyabaAslam3317 why?
same here
Android 10 introduce a new storage paradigm called scoped storage. Due to this is not working.
<application android:requestLegacyExternalStorage="true" ... > ... </application>
in AndroidManifest.xml
. This is a temporary solution.
For me after adding this block, it started working.
Original Answer: https://github.com/joltup/rn-fetch-blob/issues/700#issuecomment-732417928
I was trying to list all the files in a folder using rn fetch blob in react native. When i tried to list it i am getting an error saying
[Error: Attempt to get length of null array]
here is the below code I have tried to list the files.Its working perfectly in system emulator and when i tested in real devices its force closing and throwing this error. I am pretty sure that i gave given storage permission for this but still I am getting this error.
Any help would be appreciable.
I am using the version :
"rn-fetch-blob": "^0.12.0"
Thanks in advance :)