Can I use the hypercore/hyperswarm/hyperbee libraries with this? #61
Replies: 2 comments
-
Hi @saimon-moore yes you can, although you need to deal with building the native dependencies. We prebuild the native modules in our app CoMapeo to avoid difficulties for individual contributors trying to build locally. We are creating prebuilds for the hyper- deps (no guarantees that these will be reliably maintained, because they are mainly for our own internal use):
The template we use for creating prebuilds is here: https://github.com/digidem/nodejs-mobile-prebuilds-template Our build process for loading these prebuilt native modules is here: https://github.com/digidem/CoMapeo-mobile/blob/7e517449306f0a65c2f50f6f5695a4fd474a496d/scripts/build-backend.mjs It's possible to build the hyper deps as part of the nodejs-mobile build process, without creating prebuilds, but it might need a bit more work setting up the right build environment. |
Beta Was this translation helpful? Give feedback.
-
In case you just need a react-native version of the sodium C API that the Holepunch stack is using, check out this library. Still work in progress and not all functions are implemented yet but feel free to create an issue for the functions that you need. |
Beta Was this translation helpful? Give feedback.
-
i.e. Will I have issues building these libraries (since they depend on other native libraries)?
Beta Was this translation helpful? Give feedback.
All reactions