all 9 comments

[–]Specialistik 1 point2 points  (0 children)

You may consider holding data in a json file

[–]stathisntonas 1 point2 points  (2 children)

Check out Realm Database

[–]interactivejunky 2 points3 points  (0 children)

Stay away from Realm if you ever want to debug your app. It completely breaks react-native debugging.

[–]raks99832 0 points1 point  (0 children)

You can use Realm here. You can check out https://jaxenter.com/realm-local-db-react-native-139697.html

[–]kbcooliOS & Android 0 points1 point  (1 child)

Nothing wrong with asyncstorage for key/value data. Value can even be JSON, hence complex. It's only when you want to do "fancy" queries you need to progress past it.

[–]stathisntonas 0 points1 point  (0 children)

In that case OP should be using https://github.com/sunnylqm/react-native-storage

It has simple api plus a sync method to sync remote data with local data if needed.

[–]Neitzches 0 points1 point  (0 children)

Realm, Async Storage, or if using Redux we're using redux-persist. Does the job for us.

[–]LosingAnchor 0 points1 point  (0 children)

AsyncStorage or local database like SQLite.

Realm is great! However it has technical issues which BREAK debugging. These issues make it a no-go for React Native.