React Native


      Description — Using Couchbase Lite with Javascript applications
      Abstract — If you are building mobile or desktop applications using web technologies such as JavaScript/HTML/CSS, there are options for using Couchbase Lite as an embedded database within your app.
      Related Content — Ionic | Cordova

      Couchbase Lite for React Native is a community-driven project without official support from Couchbase.

      To use Couchbase Lite as an embedded database within your React Native app, you need a way to access Couchbase Lite’s iOS and Android native APIs from within it.

      React Native’s NativeModule system provides an answer, exposing instances of native classes to JavaScript (JS) as JS objects.

      React Native Modules allow mobile apps written in React Native to access native platform APIs. So in order to use Couchbase Lite within your React Native apps, you should implement a React Native plugin that exports the Couchbase Lite Android and iOS APIs to Javascript. It is typical to start with exporting the minimal subset of APIs that your app needs.