WebView
<webView>
is a UI component that lets you show web content in your app. You can pull and show content from a URL or a local HTML file, or you can render static HTML content.
See also:
import * as React from "react";
<webView src="http://nativescript-vue.org/" />
<webView src="~/html/index.html" />
<webView src="<div><h1>Some static HTML</h1></div>" />
Props
Name | Type | Description |
---|---|---|
src | string | Gets or sets the displayed web content. Valid values: an absolute URL, the path to a local HTML file, or static HTML. |
onLoadStarted | (args: LoadEventData ) => void | Emitted when the page has started loading in the <webView> . |
onLoadFinished | (args: LoadEventData ) => void | Emitted when the page has finished loading in the <webView> . |
Native component
Android | iOS |
---|---|
android.webkit.WebView | WKWebView |