Skip to content

remove unuesed files and update deps #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

49 changes: 34 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,46 @@
![Logo](https://raw.githubusercontent.com/seigel/pouchdb-react-native/master/static/pouchdb-react-native.png)
![Logo](https://raw.githubusercontent.com/stockulus/pouchdb-react-native/master/static/pouchdb-react-native.png)

[![npm Package](https://img.shields.io/npm/dm/pouchdb-react-native.svg)](https://www.npmjs.com/package/pouchdb-react-native) [![npm Package](https://img.shields.io/npm/v/pouchdb-react-native.svg)](https://www.npmjs.com/package/pouchdb-react-native) [![travis-ci.org](https://travis-ci.org/seigel/pouchdb-react-native.svg)](https://travis-ci.org/seigel/pouchdb-react-native) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![license](https://img.shields.io/npm/l/pouchdb-react-native.svg?maxAge=2592000)](https://opensource.org/licenses/MIT)
pouchdb-asyncstorage-adapter
======

# Dormant
forked from [pouchdb-adapter-asyncstorage](https://github.com/seigel/pouchdb-react-native/tree/master/packages/pouchdb-adapter-asyncstorage)

# NEEDS NEW OWNER

[July 24, 2023] After getting asked on when the next updates will happen, I promised that I would review over the weekend and figure out what needs to be done. THE BEST path forward is to have someone pick it up and carry it forward. I was keen then covid hit and changed everything. I am not able to do it any more, even though I never really got going because of the bad timing of everything. I had high hopes and here we are.
PouchDB adapter using AsyncStorage as its data store. Designed to run in ReactNative. Its adapter name is `'asyncstorage'`.

Reach out if there is interest.
### Usage

```bash
npm install @neighbourhoodie/pouchdb-asyncstorage-adapter --save
```

pouchdb-react-native
======
```js
import PouchDB from 'pouchdb-core'
PouchDB.plugin(require('@neighbourhoodie/pouchdb-asyncstorage-adapter').default)
const db = new PouchDB('mydb', {adapter: 'asyncstorage'})

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

```

### Android limit
> TODO: to be checked if this still relevant in 2024
On Android asyncstorage has a limitation of 6 MB per default, you might want to increase it

```java
// MainApplication.getPackages()
long size = 50L * 1024L * 1024L; // 50 MB
com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size);
```

PouchDB, the React Native-only edition. A preset representing the PouchDB code that runs in React Native.
For full API documentation and guides on PouchDB, see [PouchDB.com](http://pouchdb.com/). For details on PouchDB sub-packages, see the [Custom Builds documentation](http://pouchdb.com/custom.html).

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


# USAGE
The package needs some work to get up to speed with the latest async requirements and the latest react native requirements. I am removing the usage area until the package is more easily installed. (November 14, 2022)

---
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&maxAge=2592000)](https://twitter.com/cgul) [![GitHub stars](https://img.shields.io/github/stars/seigel/pouchdb-react-native.svg?style=social&label=Star)](https://github.com/seigel/pouchdb-react-native)
## TODO;
- Add typescript
- Check Web Compatibility
- More todos....
6 changes: 0 additions & 6 deletions example/.buckconfig

This file was deleted.

58 changes: 0 additions & 58 deletions example/.flowconfig

This file was deleted.

41 changes: 0 additions & 41 deletions example/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion example/.watchmanconfig

This file was deleted.

66 changes: 0 additions & 66 deletions example/android/app/BUCK

This file was deleted.

Loading