I’m in the quest of building a small application in React Native. Imagine it’s a book in the form of an application, and I’ve been questioning myself if the chosen solution is the right way to build it.
The app must work offline, meaning when you first install the app, you already have all the content of the book. Then when you come online, it should check for updates and new content from API server
My questions are:
Local storage : I’m leaning more into using Realm. Would it be the best/easiest solution? Is handling data sync with Realm in React Native straight forward?
Prepopulate data : my initial idea is to prepopulate data is to ship the app with a bunch of JSON files (~100 files in my case), then read and insert all data from JSON files to Realm after installing the app. And content will be read from Realm afterward.
Cache images from server for offline used:
seems to be the one? Does anyone have experience with using it?
I keep wondering if my solution is right? or there is a better way to handle prepopulating data?
Hope you can help to point me out the direction with some pieces of advice
Many thanks in advance,