File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,22 +27,24 @@ Here is benchmark results:
2727### Prerequisites
2828
2929- [ pouchdb-react-native] ( https://github.com/stockulus/pouchdb-react-native )
30- - [ react-native-sqlite-storage] ( https://github.com/andpor/react-native-sqlite-storage )
30+ - A SQLite module
31+ - [ react-native-sqlite-2 (recommended)] ( https://github.com/noradaiko/react-native-sqlite-2 )
32+ - [ react-native-sqlite-storage] ( https://github.com/andpor/react-native-sqlite-storage )
3133
3234### Usage
3335
3436Install from npm:
3537
3638``` bash
3739npm install pouchdb-react-native pouchdb-adapter-react-native-sqlite --save
38- react-native install react-native-sqlite-storage
40+ react-native install react-native-sqlite-2
3941```
4042
4143Then ` import ` it, notify PouchDB of the plugin, and initialize a database using the ` react-native-sqlite ` adapter name:
4244
4345``` js
4446import PouchDB from ' pouchdb-react-native'
45- import SQLite from ' react-native-sqlite-storage '
47+ import SQLite from ' react-native-sqlite-2 '
4648import SQLiteAdapterFactory from ' pouchdb-adapter-react-native-sqlite'
4749
4850const SQLiteAdapter = SQLiteAdapterFactory (SQLite)
You can’t perform that action at this time.
0 commit comments