javascript - 如何在 React Native 中访问文件系统?

标签 javascript reactjs react-native

我正在开发一个文件存储应用程序,它需要读取 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/

相关文章:

android - 查找文本输入框和按钮字段的资源名称以响应 native android 应用程序

css - 如何在同一容器中将标题居中对齐,文本居左对齐?

javascript - React Native 中 setTimeout 的准确性

javascript - 子 react 组件中的可变上下文和executeAction

reactjs - Azure Artifacts 上的 React 组件共享

javascript - 如何使用 Moment.js 获取一个月中的天数列表

javascript - lodash 的 .sortedUniq() 似乎没有删除重复项。它是如何工作的?

javascript - 如何在javascript中制作一个过滤器,通过复选框过滤div

javascript - 从 JSON 文件中获取特定信息

reactjs - React DnD 期望找到有效目标