Closed sleep9 closed 6 months ago
There are some polyfills/config that need to be set up to modernise the React Native environment - it's documented here - https://github.com/ipfs-shipyard/js-libp2p-react-native
Could you try building from that project, then adding Helia to it to see what extra stuff is needed?
I started from a git clone of that repository. Here is the error, I thought it might be events but I was wrong.
The native module required was react-native-webrtc.
Getting the following error when trying to create an instance of helia. "Your javascript code tried to access a native module that doesnt exist in this development client"
Maybe someone can reproduce this error. Not sure what needs to be polyfilled or what native library is needed. Tried rm -rf ./node_modules, npm install, pod deintegrate && pod install but no luck. Tried "postinstall": "rn-nodeify --install events --hack" no luck.