objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.41k stars 302 forks source link

Support for React Native #10

Open raymondctc opened 7 years ago

raymondctc commented 7 years ago

Allow RN apps to use ObjectBox as database

greenrobot-team commented 5 years ago

Whoops, mistakenly closed due to conflict with internal issue number.

Reopening.

likern commented 3 years ago

@greenrobot-team Not sure how popular ObjectBox. But supporting React Native would be truly awesome. In that case you go to growing market, without real competitors

As a React Native developer I strived to find any decent solution.

Firebase Firestore doesn't have real local database, only simple cache layer. Not for offline-first. And it can't search in arrays using in operator for more than 10 elements.

RealmDB is very buggy, it's literally not usable for anything production ready. It also uses strange "inspired by NSPredicate" syntax. I looks like it's not comparable and far behind full-power SQLite.

SQLITE has barely supported bindings. They use "bridge" (JavaScript <=> string <=> Java) serialisation which makes it even more slower.

I came up to support own patched bindings
https://github.com/breeffy/mobbly which is fork of https://github.com/andpor/react-native-sqlite-storage.

But now I have problem with syncing with server database. I need to implement own sync protocol, which is a big pain. Now I fully offline, without syncing.

Supporting React Native (using new C++ JSI architecture - no need bindings to Java or Swift, pure C++ to JavaScript) using JSI like this https://github.com/Nozbe/WatermelonDB/tree/master/native/shared would be a truly game changer. Especially with Sync.

And bring in a lot of attention in React Native community. Since now there is nothing decent.

gabimoncha commented 3 years ago

+1 for how much value it can bring the community

krshubham commented 2 months ago

Hi, any progress on this? Would love to have this work for React Native, massive use cases now

greenrobot-team commented 2 months ago

@krshubham Sorry, no concrete plans. We're experimenting with web support (not specific to React Native at this point).

Note for others: it helps us if you thumbs up the first post (GitHub can sort issues by thumbs ups)!

crosskpixel commented 2 months ago

ObjectBox seems to be a power alternative. i use ReactNative in all apps, and need sync

marianolc commented 1 month ago

With the things happening with MongoDB Realm (suddenly shutting down and giving developers just 1 year to find a replacement) this would be a really good oportunity

SzymonGalazka commented 2 weeks ago

+1, I've used Objectbox in Flutter and the amount of value it can provide in RN world is massive. Given the Mongo Realm shutdown mentioned above, it would be a great opportunity to win many developers.