read directory in react native scoped storage

300 Views Asked by At

I am following this package https://github.com/ammarahm-ed/react-native-scoped-storage in my react native project . I have one question related to this package that in its official documentation there is a method to read files but how to read whole directory with that package . I did give permission with that code const permission = await ScopedStorage.openDocumentTree(true); but as this package react-native-fs provide a way to read folder like that await RNFS.readDir(directory); how to achieve this with the help of react-native-scoped-storage

0

There are 0 best solutions below