rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.01k stars 37 forks source link

Use Replicache with React Native #1005

Closed altick closed 2 years ago

altick commented 2 years ago

Hi, I couldn't find any information about support for replicache on React Native. Is React Native supported platform? In case it's not are there any plans to support RN in the future?

aboodman commented 2 years ago

Yes, it should work. You have to hook experimentalKVStore interface up to SQLite as React Native doesn't support IndexedDB.

We don't have a sample of hooking it up to SQLite, but here's a sample of hooking up to WebSQL, which is very similar: https://github.com/rocicorp/replicache-sample-websql

If you pursue this path it would be very helpful to share a skeleton for others.

Thanks!

aboodman commented 2 years ago

Subsumed by official support bug: #1013