fixes styling with TNS 4.0. Note that the new version will not be compatible with older versions of TNS. So it might be best to up the major version.
added checks to avoid undefined access exceptions. I'm using this plugin together with nativescript-orientation and it calls the refresh function of all child elements of the view to refresh their styles/sizing. And since this called a bit early the controls are not yet initialized.
nativescript-orientation
and it calls therefresh
function of all child elements of the view to refresh their styles/sizing. And since this called a bit early the controls are not yet initialized.