
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.