How to implement offline sync in ReactNative with Couchbase Lite?

Hey Folks,

I am developing an android app with React Native. I am looking to add offline support to this application. The app currently runs off an API that is backed by a Postgres db.

I am already using NetInfo to determine the availability of internet connection but I am looking to add offline capabilities where a user can continue to update their data and information and then just have everything sync when they get a connection again.

Following is the article which made me to ask this query on the forum:

It says that couchDB is compatible with Postgres as a back-end.

But, my query is that how can i implement offline synchronization with CouchDb in React Native?

It says that couchDB is compatible with Postgres as a back-end.

No, it says PouchDB is compatible with Postgres. PouchDB is a JavaScript embedded database for use in web pages.