-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
When I pick a single file, it works fine:
const res = await DocumentPicker.pick();
const content = await fs.readFile(res[0].uri);
// goodWhen I pick a directory, it does not work:
const res = await DocumentPicker.pickDirectory();
const dirs = await fs.readDir(decodeURIComponent(res.uri)); // decode the uri or it will throw a unsupported error
// not worked, throw a error: Permission Denial...ACTION_OPEN_DOCUMENT...I see the same problem in this PR, but I don't konw how to do.
Environments:
Android 8.0
react-native@0.66.0
react-native-fs@2.18.0
react-native-document-picker@7.1.1
gj94gj94ao4, ydhnwb and amirulasrof
Metadata
Metadata
Assignees
Labels
No labels