Skip to content

Instantly share code, notes, and snippets.

@carbureted
carbureted / react-native-pouchdb.js
Last active January 9, 2016 19:49
Untested and somewhat ugly way to run pouchdb on react-native
/*
I just got a hacky, untested instance of pouchdb running on my
react-native IOS simulator five minutes ago. To do so, I installed
https://github.com/andpor/react-native-sqlite-storage and then pretended that it
was actually https://github.com/litehelpers/Cordova-sqlite-storage. This is
probably broken in some horribly subtle way, but the APIs I've manually tested
seem to work. Use very much at your own risk, and let me know how it goes.
I'm kind of shocked somebody hasn't come up with any other working solution, since
pouchdb and react-native are a perfect fit and there seems to be tons of demand.
*/