Orbit-db: Future React Native support?

Created on 25 Jan 2018  路  10Comments  路  Source: orbitdb/orbit-db

First, awesome project!

I think this concept will be very handy on mobile. You guys expect to port this to React Native JS engine?

Thx

question

Most helpful comment

I was able to get orbit-db and ipfs working on mobile (react native) - tested via simulator. See steps here.

The only ipfs transport that worked for me was websockets in the nodejs-mobile environment. I was able to initialize, load, and sync an orbit-db log database in iOS simulator connected to a nodejs process running on digital ocean.

I'll update once I do some more testing.

All 10 comments

Thanks for the question @marcusfelix! I think the short answer is: OrbitDB can support mobile use cases where IPFS can. Through the mobile browsers this is possible today.

There have been attempts to get IPFS working on mobile natively (and it does!), but the mobile as a platform is quite different and brings its own challenges (eg. resource consumption) that need to be addressed before it can be considered "usable", as in natively.

That said, js-ipfs can run in the browsers on mobile platforms through the browsers, thus also OrbitDB works in the mobile browsers, so perhaps that's enough to get you started?

Does that help?

I tried to install OrbitDB on React Native app but a lot of dependencies was missing, so i started to ament with manual installs but no success. Seems that OrbitDB is almost compatible with RN JS env. Some dependencies like 'path' and 'events' are not available in RN JS env but are required by IPFS or another stuff.

I will play with browsers for a while...
Thx!

I can add to that. It is virtually impossible to replace all node core dependencies of js-ipfs without botching webcrypto or ending up with an undefined self among other things. I also doubt the safety and maintainability of using hacks and work arounds to make it work. But this is indeed a js-ipfs problem since it is too dependent on dependencies that use node core modules.

I was able to get orbit-db and ipfs working on mobile (react native) - tested via simulator. See steps here.

The only ipfs transport that worked for me was websockets in the nodejs-mobile environment. I was able to initialize, load, and sync an orbit-db log database in iOS simulator connected to a nodejs process running on digital ocean.

I'll update once I do some more testing.

That sound awesome @krahimian! Looking forward to hear how it goes 馃憤

This is very cool @0x77dev. I wonder if we can showcase that somehow and inspire people to try and utilize orbit-db on top of it

To not create another question, I decided to ask this question here, especially topics related. Is somebody try, maybe even successfully, to install orbitDb on angular nativescript? Is it possible?

Given the react native boilerplate above I'd say there's a chance! Do you have a repo you're working with?

Given the react native boilerplate above I'd say there's a chance! Do you have a repo you're working with?

Thx for answer! right now i only testing different libs for new project, with decentralized db. Here is repository, I want to implement orbit-db https://github.com/objectisliper/spin-ui

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cristiano-belloni picture cristiano-belloni  路  5Comments

oed picture oed  路  5Comments

hugcoday picture hugcoday  路  5Comments

RichardLitt picture RichardLitt  路  4Comments

eusthace picture eusthace  路  6Comments