nativescript-simple-webview
A simple webview using Chrome CustomTabs for Android and SFSafariViewController for iOS.
npm i --save nativescript-simple-webview
- Version: 1.1.5
- GitHub: https://github.com/garystubbings/nativescript-simple-webview
- NPM: https://www.npmjs.com/package/nativescript-simple-webview
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
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