Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
nativescript-awesome-webview-with-custom-menu-items
Advanced tools
Awesome WebViews for all NativeScript Apps!
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 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.