【发布时间】:2018-12-16 13:12:48
【问题描述】:
我目前正在使用 React Native 的 Expo 库将录音写入 iOS 文件系统。我按照the expo docs 使用FileSystem.documentDirectory,但是在使用iOS11 Files 应用程序时无法访问此文件。 Expo是否有可能在允许这样做的地方写,或者在iCloud上写失败? FileSystem.documentDirectory 似乎是文件系统中的沙盒区域。
【问题讨论】:
-
iOS 应用需要“选择加入”共享。也许从iOS 11 Files App: How to include files from app bundle开始
-
我已将
UISupportsDocumentBrowser和UIFileSharingEnabled添加到世博会的app.json中,如下所示。我尝试了true和"YES",但似乎都不起作用。我怀疑这是 Expo 尚未公开的内容:"ios": { "supportsTablet": true, "infoPlist": { "UISupportsDocumentBrowser": true, "UIFileSharingEnabled": true } }
标签: javascript ios react-native expo files-app