【发布时间】:2017-03-05 05:15:05
【问题描述】:
我需要从 react native app throw relayjs 突变下载多个文件。文件数组如下所示:
[
{uri: 'file:///path/to/file.jpg', mime: 'image/jpg'},
{uri: 'file:///path/to/file2.jpg', mime: 'image/jpg'},
]
我发现 getFiles() func 用于突变,但我不明白它应该返回什么格式的数据?
【问题讨论】:
-
getFiles 接收一个对象,{'file1': file1, 'file2': file2},其中 file1 是文件类型。检查中继文档:facebook.github.io/relay/docs/…
-
什么是 react-native 中的文件类型?
-
你需要从 uri 中获取文件,我猜。我会在接下来的几天里深入研究这个
-
有人解决了这个问题吗?
标签: react-native relayjs