objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Support for React Native

Open raymondctc opened this issue 8 years ago • 10 comments

Allow RN apps to use ObjectBox as database

raymondctc avatar Jan 25 '17 10:01 raymondctc

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

Reopening.

greenrobot-team avatar Feb 26 '19 10:02 greenrobot-team

@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.

likern avatar Dec 11 '20 02:12 likern

+1 for how much value it can bring the community

gabimoncha avatar Jul 31 '21 10:07 gabimoncha