cbothner/react-activestorage-provider

Usage with React Native and Apollo?

Jarred-Sumner opened this issue · 2 comments

How tricky would it be to get this working with React Native and Apollo?

This package depends on the activestorage package distributed with Rails, which to my knowledge uses DOM APIs and does not support React Native. For now, I’m sorry to say that React Native support is out of scope for this package.

In case it’s helpful, I ended up writing up a bit of how-to that details the requests that go into uploading a file to a model using activestorage. I haven’t figured out a react native compatible way of making an MD5 checksum of the file, which is necessary for a direct upload, but maybe this will provide some direction. rails/rails#32208 (comment)