works just with PouchDB 5.3
*** New Version ***
with the new sub-packages in PouchDB 5.4.0 there is a new structure.
For details on PouchDB sub-packages, see the Custom Builds documentation.
*** Old Readme ***
Adds an async storage Adapter to the PouchDB + Polifills core-js that PouchDB with leveldown Adapter is running with react-native
You should be able to just do:
npm install pouchdb-asyncstorage-down --save
Then require it after PouchDB:
const PouchDB =const db = 'mydb' adapter: 'asyncstorage'// or import styleconst db = 'mydb' adapter: 'asyncstorage'
there is a small example app: https://github.com/stockulus/pouchdb-react-native/tree/master/example
Currently done manually by me, not sure how to easy simulate a running IOS / Android device
Currently working on getting tests running, but a little struggling in running react-native as node tests
Feedback welcome: Twitter: @stockulus