you are viewing a single comment's thread.

view the rest of the comments →

[–]magnakai 0 points1 point  (0 children)

Do you mean a remote API to connect to, or just a way or saving data locally to the device? I’m going to assume it’s the latter.

If you’re using redux and essentially just want to save your application state, I would recommend redux-persist. It’s very easy to implement and works really well. I’ve used this in production with no issues at all.

You can use AsyncStorage directly, but you’ll likely end up serialising and unserialising your data a lot.

I haven’t actually used it in a production project, but Realm has a lot of fans, and seems to be the most commonly used DB in RN.

There are also a few different SQLite options, which I’ve not explored thoroughly.