PouchDB, the ReactNative-only edition. A preset representing the PouchDB code that runs in ReactNative.
pouchdb-react-native preset contains the version of PouchDB that is designed for ReactNative. In particular, it ships with the AsyncStorage adapters as its default adapters. It also contains the replication, HTTP, and map/reduce plugins.
npm install pouchdb-react-native --save
npm >= 3 / node >= 6 works best, there are some known issues with npm 2
const db = 'mydb'// use PouchDBdb
On Android asyncstorage has a limitation of 6 MB per default, you might want to increase it
// MainApplication.getPackages()long size = 50L * 1024L * 1024L; // 50 MBcom.facebook.react.modules.storage.ReactDatabaseSupplier..;
there is a small example app: https://github.com/stockulus/pouchdb-react-native/tree/master/example