A PouchDB adapter that uses op-sqlite as the backing store on React Native, replacing AsyncStorage for better performance. Version 4.1.3 is the latest stable release, with infrequent updates. It requires polyfilling Node.js modules (crypto, stream, buffer) and bundler aliasing. Unlike other SQLite adapters, it directly binds to op-sqlite for efficiency and supports SQLCipher encryption.
npm install pouchdb-adapter-react-native-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up PouchDB with react-native-sqlite adapter including polyfills and plugin registration.
Remove @craftzdog/pouchdb-adapter-websql-core from package.json; ensure op-sqlite is installed.
Migrate to using 'react-native-sqlite' adapter.
Install react-native-quick-crypto, @craftzdog/react-native-buffer, readable-stream, and configure babel-plugin-module-resolver as per README.
Edit NativeQuickCrypto.js to comment out the on-device check as described in troubleshooting.
Use adapter: 'react-native-sqlite' when creating PouchDB instance.
Ensure react-native-quick-crypto is installed and import 'react-native-quick-crypto' and call install() in shim.ts.
Import sqliteAdapter from 'pouchdb-adapter-react-native-sqlite' and call PouchDB.plugin(sqliteAdapter) before creating PouchDB instances.
Switch to on-device debugger (Flipper) or edit NativeQuickCrypto.js to bypass the check as per troubleshooting.
Install babel-plugin-module-resolver and add alias in babel.config.js as per README.