npm.io
1.1.5 • Published 6 years ago

nativescript-simple-webview

Licence
MIT
Version
1.1.5
Deps
0
Size
29 kB
Vulns
0
Weekly
0
Stars
1

NativeScript Simple Webview Plugin

A simple plugin for providing webview functionality to your NativeScript app, with the added ability to programmatically close the webview (in iOS).

Installation

tns plugin add nativescript-simple-webview

Usage

Unlike other nativescript webview plugins the simple webview plugin exposes a SimpleWebView interface with a single instance method named close().

import { openUrl } from 'nativescript-simple-webview';

const webview = openUrl({
    url: 'http://www.google.com',
});

webview.close();

License

MIT