pouchdb-adapter-asyncstorage
PouchDB adapter using AsyncStorage as its data store. Designed to run in ReactNative. Its adapter name is 'asyncstorage'
.
Usage
npm install pouchdb-adapter-asyncstorage --save
PouchDBconst db = 'mydb' adapter: 'asyncstorage' // use PouchDBdb
Android limit
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 MB com.facebook.react.modules.storage.ReactDatabaseSupplier..;
For full API documentation and guides on PouchDB, see PouchDB.com. For details on PouchDB sub-packages, see the Custom Builds documentation.