6.4.1 • Published 6 years ago

pouchdb-react-native v6.4.1

Weekly downloads
578
License
MIT
Repository
github
Last release
6 years ago

Logo

pouchdb-react-native

PouchDB, the ReactNative-only edition. A preset representing the PouchDB code that runs in ReactNative.

The pouchdb-react-native preset contains the version of PouchDB that is designed for ReactNative. In particular, it ships with the AsyncStorage adapters as its default adapters. It also contains the replication, HTTP, and map/reduce plugins.

bitHound Overall Score npm Package npm Package travis-ci.org js-standard-style license

Usage

npm install pouchdb-react-native --save

npm >= 3 / node >= 6 works best, there are some known issues with npm 2

import PouchDB from 'pouchdb-react-native'
const db = new PouchDB('mydb')

// use PouchDB
db.get('4711')
  .then(doc => console.log(doc))

For full API documentation and guides on PouchDB, see PouchDB.com. For details on PouchDB sub-packages, see the Custom Builds documentation.

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.getInstance(getApplicationContext()).setMaximumSize(size);

Sample App

there is a small example app: https://github.com/stockulus/pouchdb-react-native/tree/master/example


Twitter URL GitHub stars

7.0.0-beta-1

6 years ago

6.4.1

7 years ago

6.4.0

7 years ago

6.3.4

7 years ago

6.2.6

8 years ago

6.2.5

8 years ago

6.2.4

8 years ago

6.2.3

8 years ago

6.2.2

8 years ago

6.2.1

8 years ago

6.2.0

8 years ago

6.1.26

8 years ago

6.1.25

8 years ago

6.1.24

8 years ago

6.1.23

8 years ago

6.1.22

8 years ago

6.1.21

8 years ago

6.1.20

8 years ago

6.1.19

8 years ago

6.1.18

8 years ago

6.1.17

8 years ago

6.1.16

8 years ago

6.1.15

8 years ago

6.1.14

8 years ago

6.1.13

8 years ago

6.1.12

8 years ago

6.1.11

8 years ago

6.1.10

8 years ago

6.1.9

8 years ago

6.1.8

8 years ago

6.1.7

8 years ago

6.1.6

8 years ago

6.1.5

8 years ago

6.1.4

8 years ago

6.1.3

8 years ago

6.1.2

8 years ago

6.1.1

8 years ago

6.1.0

8 years ago

6.1.0-beta-9

8 years ago

6.1.0-beta-8

8 years ago

6.1.0-beta-7

8 years ago

6.1.0-beta-6

8 years ago

6.1.0-beta-5

8 years ago

6.1.0-beta-4

8 years ago

6.0.1-beta4

8 years ago

6.0.1-beta3

8 years ago

6.0.1-beta2

8 years ago

6.0.1-beta1

8 years ago

6.1.0-beta-3

8 years ago

6.0.0

8 years ago

5.5.0-beta-2

8 years ago

5.5.0-beta-1

8 years ago

5.4.20

8 years ago

5.4.19

8 years ago

5.4.18

8 years ago

5.4.17

8 years ago

5.4.16

8 years ago

5.4.15

8 years ago

5.4.14

8 years ago

5.4.13

8 years ago

5.4.12

8 years ago

5.4.11

8 years ago

5.4.10

8 years ago

5.4.9

8 years ago

5.4.8

8 years ago

5.4.7

8 years ago

5.4.6

9 years ago

5.4.5

9 years ago

5.4.4

9 years ago

5.4.3

9 years ago

5.4.2

9 years ago

5.4.1

9 years ago

5.4.0

9 years ago

2.0.0-alpha-1

9 years ago