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:
27
27
### Prerequisites
28
28
29
29
- [ 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 )
31
33
32
34
### Usage
33
35
34
36
Install from npm:
35
37
36
38
``` bash
37
39
npm 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
39
41
```
40
42
41
43
Then ` import ` it, notify PouchDB of the plugin, and initialize a database using the ` react-native-sqlite ` adapter name:
42
44
43
45
``` js
44
46
import PouchDB from ' pouchdb-react-native'
45
- import SQLite from ' react-native-sqlite-storage '
47
+ import SQLite from ' react-native-sqlite-2 '
46
48
import SQLiteAdapterFactory from ' pouchdb-adapter-react-native-sqlite'
47
49
48
50
const SQLiteAdapter = SQLiteAdapterFactory (SQLite)
You can’t perform that action at this time.
0 commit comments