-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support js-ipfs-http-client use in React Native env #2846
Comments
Any chance you can help us out with this @pcowgill? I think in the new version we're not using most of those modules (since we've shifted to more browser focused APIs), but it would be good to know where we currently don't. Ideally we wouldn't have a |
@alanshaw Yep, I'm definitely interested in helping out with this. It's too bad that It would be nice if this lib's dep was something more universal rather than something that assumes a browser env. When you say that you're not using most of those modules, do you means ones for which we'd need a node core polyfill or ponyfill? I know you're moving away from @alanshaw What's unappealing about having a
|
Some issues that would get this moving in a good direction (they're all distinct steps so I don't think it makes sense to merge them): https://github.com/ipfs/js-ipfs-http-client/issues/1215 |
Will be fixed by #2813 |
I'll close this issue and we can track this issue in the newer one @achingbrain linked to. |
This would involve adding a
react-native
field in thepackage.json
equivalent to thebrowser
one that already is in there and ensuring that the appropriate react-native-compatible implementations of node core modules are used.The list of react-native compatible versions can be found here and/or here.
It would also involve only using 3rd party deps that also have these criteria met when in a React Native env.
There's a more specific issue about a particular problem one runs into using this lib in a React Native env, but this issue is about the more general need for React Native support, so it should persist even if that issue gets resolved first.
This is a complementary issue to the one over in the
aegir
repo.The text was updated successfully, but these errors were encountered: