itinance / itinance/react-native-fs
How to access USB OTG disk on Android API 10 device?
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
On an Android API 8.x phone, my React-Native app is able to read the /storage dir and see the inserted USB OTG drive under a path name such as /storage/1E04-2D05, and access all files.
But when I tried the same app on an Android API 9 and API 10 phones, an inserted USB OTG disk does not show up under /storage. And I can't seem to find it under other common directories either. I've searched under:
RNFS.DocumentDirectoryPath
RNFS.ExternalDirectoryPath
RNFS.ExternalStorageDirectoryPath
Does anyone know what the issue could be? Or what has changed to cause this? Or which path should I use? I've tried /storage/usbdisk and that doesn't work either.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.