Couchbase Lite for React Native
Couchbase Lite for React Native is a Native Module implementation of Couchbase Lite for React Native using Typescript. It has feature parity with Couchbase Lite implementations for other platforms, with a few exceptions.
Version 1.1 adds official React Native New Architecture support through TurboModules.
More information on React Native - Native Modules can be found here: React Native Docs
|
Couchbase Lite for React Native has officially graduated from a community project to a fully Enterprise-Supported offering |
Install via npm: @couchbase/couchbase-lite-react-native — see Install for full setup.
The version of this Native Module is based on supporting Couchbase Lite Enterprise for iOS and Android. A license is required to use Couchbase Lite Enterprise edition.
Features
-
Offline First
-
Documents
-
Schemaless
-
Stored in efficient binary format
-
-
Blobs
-
Store and sync binary data, for example JPGs or PDFs
-
-
Queries
-
SQL++ Query Language
-
Extension of familiar SQL for JSON-like data
-
Many built-in functions
-
Full-Text Search
-
Indexing
-
-
-
Data Sync
-
Couchbase Capella App Servcies - Sync your data from your mobile app to the Cloud
-
Remote On-Premise via Sync Gateway
-
-
Change Notifications for
-
Documents
-
Collections
-
Queries
-
Replication
-
-
Encryption
-
Full Database
-
-
Pre-built Databases
-
Bundle a pre-populated database with your app to reduce initial sync time and bandwidth on first launch
-
-
React Native New Architecture
-
TurboModule support for iOS and Android
-
-
Logging
-
Console, file, and custom log sinks
-
React Native wrapper logs can be forwarded to file and custom sinks
-
|
This plugin only works with iOS and Android platforms. Web, Windows, and macOS support is not available — see Platform Support. |
Version Compatibility
Couchbase Lite for React Native is versioned separately from Couchbase Lite. Each version is built on a specific version of the Couchbase Lite Enterprise SDKs for iOS and Android:
| React Native Plugin | Couchbase Lite Swift Enterprise (iOS) | Couchbase Lite Android Enterprise |
|---|---|---|
1.1.x |
3.3.3 |
3.3.3 |
1.0.x |
3.3.0 |
3.3.0 |
For React Native and platform requirements, see Compatibility.
Upgrading?
If you are upgrading from 1.0.x to 1.1, see the Version 1.1 Migration Guide.
If you are upgrading from 0.6.x, see the Version 1.0 Migration Guide for detailed instructions on upgrading to version 1.0.
|
Migrating from 0.6.x directly to 1.1? Follow both guides in order — complete the Version 1.0 Migration Guide first, then the Version 1.1 Migration Guide. |