nativeScript-simple-webview
一个使用 Chrome CustomTabs(Android)和 SFSafariViewController(iOS)的简单 webview。
npm i --save nativescript-simple-webview
- 版本:1.1.5
- GitHub: https://github.com/garystubbings/nativescript-simple-webview
- NPM: https://npmjs.net.cn/package/nativescript-simple-webview
- 下载
- 昨天: 9
- 上周: 12
- 上个月: 22
NativeScript Simple Webview 插件
一个简单的插件,为您的 NativeScript 应用程序提供 webview 功能,并增加了能够编程关闭 webview 的功能(在 iOS 上)。
安装
tns plugin add nativescript-simple-webview
用法
与其他 nativescript webview 插件不同,simple webview 插件公开了一个名为 SimpleWebView
的接口,该接口只有一个名为 close()
的实例方法。
import { openUrl } from 'nativescript-simple-webview';
const webview = openUrl({
url: 'http://www.google.com',
});
webview.close();
许可
MIT