My idea , is to make my react native app to update , its js files form the web . on each load (only if there is an update). There is a two aproaches for that.
First one is to do it inside the v8 . Use a diffrenet require function,
myRequire(jsUrl, './offlineLocalJs.js');
myRequire implantation based on this answer.
There are two problems with this aproach
- if myRequire is async , so each module would be written promises/callbacks
- myRequrie is sync. so the app load time will slow down
Second Approach
Use a native IOS module that does http requests to fetch the files, and updates the bundle files, and javascript stays as is.
Some how im in favor off the second approach. but my i dont know much about ios devlopment.
I be happy to hear thoughts , about this idea , and suggestions Thanks