-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Track: react native support #2813
Comments
I appreciate you adding the label |
The latest update on my efforts related to this: Back to using the GitHub fetch polyfill which is bundled in React Native (rather than
|
I think this is true on a longer timescale, but I'm not sure if we have a good chance of getting this through on a short timescale. So I think it's worth patching here in the meantime. @achingbrain what do you think? |
We could use an approach like you all did with // TODO remove this when upstream fix for ky-universal is merged
// https://github.com/sindresorhus/ky-universal/issues/9
// also this should only be necessary when nodeIntegration is false in electron renderer
if (isElectronRenderer) {
exports.toFormData = require('./form-data.browser').toFormData
} |
Here is the tracking issue on the React Native repo facebook/react-native#27741 |
Reading that and the related issues, it doesn't sound like something they'll take on unless it becomes a priority for them, but it does sound like they are open to other people contributing a fix. Want to take a stab at PRing support in? |
Exactly these issues about half baked spec implementations need to be patch directly in rn or in a external package. |
Based on the latest comments on that issue, they're open to creating a fork of Here's the original discussion about the changes to be made to I added a related comment here about where these changes should land from the IPFS org's perspective #2847 (comment) |
https://www.npmjs.com/package/cross-fetch works in RN already...why not just use that? |
cross-fetch is just a wrapper problems the issue is much deeper in the stack |
@pcowgill @hugomrdias What's the status of this? I've got some spare cycles that I'd like to throw at it. |
@RobertFischer cycles? who wants to fund this? I'll take care of it. |
@x5engine If you're asking what @RobertFischer means by cycles, he means time to work on this. @RobertFischer @x5engine My comment on Mar 10 reflects the latest status on this as far as I know. My funding to work on this problem disappeared along with the pandemic, but I'd be happy to hop on a call to do a full debrief of the current state of things! |
@pcowgill I have no issues on this if you want to have a call and do a full debrief on how to get this working I would be very glad to be there and we can live stream it too! set a time |
I am currently working on using IPFS on react-native. On React-native: When I add a buffered string(i.e. Buffer(str) ) to IPFS using ipfs.add, the buffered string is added successfully and IPFS returns the hash. When I try to retrieve the buffered string via ipfs.cat and the hash, ipfs.cat returns [Error: XHR error]. So the returned variable is undefined. On Node.jS and ReactJs: I do not have this problem. Both ipfs.add and ipfs.cat works. Is this a problem with react native? is it related to fetching ? would changing the ipfs-http-client version in packag.json help? btw, i am using ipfs-http-client 27.0.0 Any suggestions would be highly appreciated |
@ZTECH10 nice show us a repo or something on how you did that? did you use an ipfs node or just the http api? |
Here is react-native sandbox with working get requests https://github.com/qalqi/react-native-ipfs-http-client/tree/primary/rn-nodeify |
I've ran into a possible issue with the |
Found an issue in RN about the usage of |
Hi, has anyone managed to polyfill crypto? I use https://github.com/webview-crypto/webview-crypto but fails to serialize large files when I add(). EDIT: Managed to fix with webview-crypto/webview-crypto#8. |
@chrisdukakis I'm sorry, I have no clue as to why you're getting that error in libp2p. I'm not familiar with libp2p's codebase. |
I've also got a library that's a pure implementation of `randomBytes`:
https://github.com/RobertFischer/randombytes-pure
…On Sun, Jun 13, 2021 at 4:15 PM André Costa Lima ***@***.***> wrote:
@chrisdukakis <https://github.com/chrisdukakis> I'm sorry, I have no clue
as to why you're getting that error in libp2p. I'm not familiar with
libp2p's codebase.
I did polyfill window.crypto before, but I used
react-native-get-random-values
<https://github.com/LinusU/react-native-get-random-values>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2813 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAE5V7BSFBFR2MWQ2QBPL3TSUGWDANCNFSM4LASJE7A>
.
|
When use add function of ipfs-http-client on react native. I've got this error |
js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide. Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterward (see #4336). Note that I'm pushing to get an example using react-native in Helia. I posted a comment at ipfs/helia#43 (comment), please feel free to contribute an example if you get time! Related to #3404 |
Tracking:
Related
ipfs-http-client
https://github.com/ipfs/js-ipfs-http-client/issues/1117#issuecomment-589011968ipfs-inactive/js-ipfs-http-client#1224 (comment)this needs to be patched in react-native not herehttps://github.com/ipfs/js-ipfs-http-client/issues/1219#issuecomment-582846315close after proper fix for arrayBufferipfs-inactive/js-ipfs-http-client#1224
ipfs
#1254 nodejs-mobile, nodejs-mobile-react-native
#2768 nodejs-mobile-react-native
The text was updated successfully, but these errors were encountered: