react-pouchdb icon indicating copy to clipboard operation
react-pouchdb copied to clipboard

Support for pouchdb-react-native

Open mortegro opened this issue 4 years ago • 1 comments

Thanks for your great work! Is it possible to support a variant which uses https://github.com/stockulus/pouchdb-react-native as pouchdb implementation?

I tryed replacing the three import statements and it worked fine.

Thanks in advance.

mortegro avatar Nov 29 '20 08:11 mortegro

Great suggestion! Thanks for testing it works 👍 I'll implement this in the next release. Also, a create API like this would be useful, if there are other PouchDB editions:

import PouchDB from 'pouchdb-xyz';
import { create } from 'react-pouchdb';

const { PouchDB as ReactPouchDB, useGet /*...*/ } = create(PouchDB);

ArnoSaine avatar Nov 30 '20 20:11 ArnoSaine