Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-custom-android-webview
Advanced tools
Fork of the react-native webview that adds a couple new functions: 1. Ability to pass in an array of hostnames to open in a custom chrome tab 2. Ability to download PDFs / ZIPs / etc. automatically
Fork of the react-native webview that adds a couple new functions:
Note: Android only Supports all the same props as the default react native webview
In addition to usual React Native WebView props:
Props | Type | Notes & Example |
---|---|---|
openInternally | Array[string] | ['google.com', 'facebook.com', 'app.facebook.com'] |
toolbarColour | String | Hex code value for the toolbarColour on the Chrome custom tab |
npm install react-native-custom-android-webview
android/app/src/main/java/[...]/MainActivity.java
import com.ovoenergy.customwebview.CustomWebViewPackage;
to the imports at the top of the filenew CustomWebViewPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-custom-android-webview'
project(':react-native-custom-android-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-custom-android-webview/android')
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
compile project(':react-native-custom-android-webview')
```
import CustomWebView from 'react-native-custom-android-webview';
<CustomWebView
...standardWebViewProps
openInternally={['google.com', 'facebook.com', 'app.facebook.com']}
/>;
Note: The openInternally list should be based on host, not domain
This project is licensed under the MIT License.
FAQs
Fork of the react-native webview that adds a couple new functions: 1. Ability to pass in an array of hostnames to open in a custom chrome tab 2. Ability to download PDFs / ZIPs / etc. automatically
The npm package react-native-custom-android-webview receives a total of 1 weekly downloads. As such, react-native-custom-android-webview popularity was classified as not popular.
We found that react-native-custom-android-webview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.