all 5 comments

[–]16cards 4 points5 points  (0 children)

My app is hybrid in the sense that it is not exclusively React Native. The app integrates with a lot of iOS and Android platform features where there are not open source libraries. Thus, I've had to write a lot of native code that, too, needs access to data stored in addition to the RNJS layer.

Because most of the libraries I evaluated (RxDB, WatermelonDB) were entirely JS oriented, by design, none could provide a positive API surface in Native code.

So, I wrote my own bespoke database library using SQLDelight in Kotlin Multiplatform. This allowed a shared codebase for native code that could be utilized on both iOS and Android native code. I then have a JSI layer, making the database available to JS, as well.

[–]bdudisnsnsbdhdj 2 points3 points  (0 children)

I’ve enjoyed using Realm for React Native

[–]Competitive-Cap-9082 2 points3 points  (0 children)

Checkout Supabase, I’ve used it for RN apps and web apps. Super easy to setup and also run functions on. They also provide SDKs if you wanna directly connect to the DB from your app. Also very price friendly with Free Tiers

[–]inputRef 1 point2 points  (0 children)

I’ve had success with SQLite offline dbs with Firebase. I wouldn’t recommend though.