Skip to content
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

Possibility of adapting for React Native #168

Open
jsierles opened this issue Apr 21, 2015 · 4 comments
Open

Possibility of adapting for React Native #168

jsierles opened this issue Apr 21, 2015 · 4 comments

Comments

@jsierles
Copy link

React Native runs in javascriptcore, but already has an adapter for SQLite. Could persistence.js work in it, given a proper adapter?

@lukasredev
Copy link
Contributor

That's exactly the thought, that I had and I'am currently using the persistence in memory adapter to implement a simple app ( working fine so far )
and planning to create an adapter that works with react-native as soon as I get the time ( or some one else does it before I have to :D ) ....

My Idea was to create a persistencejs adapter, that uses the react-native AsyncStorage ...
How would you use the SQLite database?

@jsierles
Copy link
Author

Good to know it works already! asyncstorage is also a good idea, I'm just sqlite as there's already an adapter and I need SQL behavior at times. Here's the adapter I'm using now:
https://github.com/almost/react-native-sqlite

@lukasredev
Copy link
Contributor

And is it possible to use this adapter with persistencejs?

@jsierles
Copy link
Author

Not out of the box, but it's not much work to adapt. I'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants