Creating an app with strong offline-first support is always a challenge. All resources need to be downloaded beforehand and some of these resources could be your custom html/js files that you would like to be accessible to users when they are offline.
In this article, we will talk about how to load such resources in react-native-webview.
Note, only use react-native-webview when you truly need it or when you want to a keep consistent user experience across web and mobile platforms with little effort.
Here is a high-level summary of the steps we need-
So I went to the polar bears and told them ‘You all are dumb’, without saying anything, they attacked me.
I imagined that I must have hurt their feelings so I went again, this time I said ‘Guys you are not dumb’, again without saying anything, they attacked me. I realized that they must have assumed a hidden sarcasm in my words.
I decided to let things settle for a week and try again; this time I said ‘Guys I am sorry’. Unsurprisingly I was attacked again. Barely escaping this time, it occurred to me that they are both dumb and deaf.
Originally published at rinine.wordpress.com on August 22, 2015.
Code I do