我正在开发一个文件存储应用程序,它需要读取 sd 存储和内部手机存储的内容。 我已经检查过 react-native-fs 和 react-native-fetch-blob 但这两个应用程序只允许我访问我的应用程序的存储。 如何读取手机上的其他文件?
最佳答案
我相信 react-native-fs 确实支持 Android 中的外部存储。
来自documentation :
ExternalDirectoryPath
(String
) The absolute path to the external files, shared directory (android only)
ExternalStorageDirectoryPath
(String
) The absolute path to the external storage, shared directory (android only)
关于javascript - 如何在 React Native 中访问文件系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42394859/