-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React-Native support #38
Comments
Won't that push the entire Would it be possible to just pull a compiled version of the code or something like that into Edit: typo |
I'm not sure actually. It might be possible to browserify the bundle and just include the binaries in the folder. I wonder if there are tools that do this already? There's also an effort to make it work with regular react-native: https://github.com/cliqz/dat-react-native/ If they can get decent performance out of it then nodejs-mobile wouldn't be needed. |
Yes, react-native out of the box would be ideal. However, we have a working app that runs hypercore, networking, crypto, leveldb in nodejs-mobile, it's pretty small actually given it's bundling node, the APK is 89MB. https://github.com/digidem/mapeo-mobile It takes a bit of effort to make sure it works well in the background, but this is mostly app logic not too different from programming in electron |
Hello all. To hopefully answer @fmsouza question and confirm @RangerMauve's suggestion: I've found moving the My
Only issue is Making attempts this week irrespective. |
@martinheidegger and I are currently working on making sure sodium-javascript works in RN. We're setting up a continuous integration testing suite that'll run it on RN and then we'll be fixing bugs. |
Actually, @LeslieOA would you be down for chatting more about how we could collaborate on pushing this RN stuff forward? My email is [email protected] |
Emailed 🙂 |
Now that we have hyperspace support in the SDK it might make sense to use nodejs-mobile to spin up a hyperspace instance on the native side and use just the client portion for hyper-sdk in the react-native thread. |
Make a wrapper over the SDK using nodejs-mobile-react-native and provide it to React-Native apps.
The text was updated successfully, but these errors were encountered: