What's the best way to implement realm in react native(project structure), when you have multiple webAPI methods and tables to store.
I'm doing the following is this a right approach or not? If not kindly suggest or provide any link.
created a model folder - each js file in this folder have a model class extended with RealmObject.
Created a folder for asynchronous tasks - each js file in this folder Calls web api and write data in Realm objects. Every webapi function has a sperate js file.
Initially when app loads on component mount call all important async tasks and call rest of them wherever needed.
Doing this I'm unable to auto update data in realm i.e: Realm results are not dynamic we have to manually call on change to show the updated data.