React-native-fs: Android 10 compatibility

Created on 23 Aug 2020  路  8Comments  路  Source: itinance/react-native-fs

write/read operations doesn't work on android 10 although it is working fine on android 10.
scenario:
1- grant permission to ExternalStorageDirectoryPath
2- allow to read/write
3- i didn't find the file on my device.

Most helpful comment

In AndroidManifest.xml
Add android:requestLegacyExternalStorage="true"
It's working

All 8 comments

+1

Same here

same here

Same here, a long time ago

Possible what I'm facing.
When performing any action (e.g. moveFile, copyFile, exists) the promise resolves: then.(result => {})), but result is undefined.
Moving a file (jpg) using absolute paths seems to corrupt the file.

Me too

In AndroidManifest.xml
Add android:requestLegacyExternalStorage="true"
It's working

Trying to tie together all the related issues to the root issue: #998

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1556173267 picture 1556173267  路  3Comments

duckmyanmar picture duckmyanmar  路  3Comments

AgNm picture AgNm  路  4Comments

MuppaAkhil picture MuppaAkhil  路  3Comments

zaheerahmad92001 picture zaheerahmad92001  路  3Comments