relay-authentication icon indicating copy to clipboard operation
relay-authentication copied to clipboard

getFiles() in react native with relayjs mutations

Open antonsivogrivov opened this issue 8 years ago • 1 comments

Hi!

I need to download multiple files from react native app throw relayjs mutation. Files array looks like:

[
    {uri: 'file:///path/to/file.jpg', mime: 'image/jpg'},
    {uri: 'file:///path/to/file2.jpg', mime: 'image/jpg'},
]

I found getFiles() func for mutations, but I don't understand what format of the data it should return?

antonsivogrivov avatar Oct 23 '16 11:10 antonsivogrivov

the format is a map

{ 'filename1': File1, 'filename2': File2, }

sibelius avatar Nov 30 '16 17:11 sibelius