Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nativescript-awesome-webview-with-custom-menu-items
Advanced tools
Awesome WebViews for all NativeScript Apps!
Readme
A WebView plugin for NativeScript {N} that uses Chrome Custom Tabs in Android and SFSafariViewController in iOS. It is awesome because now you can use the system's default browser, letting people maintain active logins across websites (instead of having to freshly login to sites in the scope of your app's webview). Which means the custom tabs (or safari view) loads really fast! Also you can set the color of the title bar and controls of the custom tab / safari view.
As of now, there aren't any prerequisites. This should work with any device, any OS.
For tns
projects (Angular, Typescript, Javascript)
tns plugin add nativescript-awesome-webview-with-custom-menu-items
For vue-cli
projects (Nativescript-Vue)
npm install nativescript-awesome-webview-with-custom-menu-items
Javascript -
const {init, openWebView} = require('nativescript-awesome-webview-with-custom-menu-items');
Typescript -
import {init, openWebView} from 'nativescript-awesome-webview-with-custom-menu-items';
init()
NOTE: This warms up the Chrome Custom Tab on Android For details check this
Calling init()
does nothing on iOS. So if you're making for both OS, calling the function doesn't hurt in iOS.
openWebView({
url: 'http://google.com',
toolbarColor: '#2277aa',
toolbarControlsColor: '#eebb99'
});
AwesomeWebviewOptions
structure (the object you pass into openWebView
)
Property | Default | Description |
---|---|---|
url | required | The URL to open |
showTitle | false | Shows title bar in the webview |
toolbarColor | undefined | Color of the toolbar |
toolbarControlsColor | undefined | (only iOS) color of buttons on toolbar |
isClosed | undefined | callback function that will be called when webview is closed |
This is free, open source and do-whatever-you-want-ware. I really don't care. But if you need an official license -
Apache License Version 2.0, January 2004
FAQs
Awesome WebViews for all NativeScript Apps!
The npm package nativescript-awesome-webview-with-custom-menu-items receives a total of 0 weekly downloads. As such, nativescript-awesome-webview-with-custom-menu-items popularity was classified as not popular.
We found that nativescript-awesome-webview-with-custom-menu-items demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.