However, from time to time, you will need a WebView in a mobile application. Perhaps you need to reuse a layout that is based on HTML. Perhaps your native application is creating HTML layouts and you need the WebView to do an on-device preview. NativeScript has you covered in these cases with our cross-platform WebView component for web content.
A few days ago, I found nativescript-webview-interface, a NativeScript plugin hosted on NPM that makes bi-directional communcation easier between the WebView and the iOS or Android runtime. The plugin author, Shripal Soni also wrote a very detailed post showing how one might use this plugin to handle the more common cases for this feature.
Read more here: http://shripalsoni.com/blog/nativescript-webview-native-bi-directional-communication/