react-native-fs does not support android 10

Created on 1 Aug 2020  路  3Comments  路  Source: itinance/react-native-fs

I cannot access RNFS.DownloadDirectoryPath nor ask for permissions to do so

await RNFS.readDir(RNFS.DownloadDirectoryPath);

in android 8.1 i can access, copy, delete file from this directory
but in android 10, i get this error
Error: Attempt to get length of null array

Most helpful comment

why close this. This is a workaround, not a solution to the main issue.

All 3 comments

temporary solution for android 10

<manifest ... >
  <!-- This attribute is "false" by default on apps targeting Android Q. -->
  <application android:requestLegacyExternalStorage="true" ... >
    ...
  </application>
</manifest>

why close this. This is a workaround, not a solution to the main issue.

@Relax594 indeed, we really need to fix this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnRyanTsai picture JohnRyanTsai  路  3Comments

duckmyanmar picture duckmyanmar  路  3Comments

7korobi picture 7korobi  路  4Comments

crobinson42 picture crobinson42  路  4Comments

wmonecke picture wmonecke  路  3Comments