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.
@transak/web-view
Advanced tools
Readme
An SDK for react native integration of Transak widget.
Wrapped over webview(react-native-webview
), it provides option to listen to order events.
Using this you get Google Pay integrated by default.
yarn add @transak/web-view
Install these required peer dependencies to facilitate auto-linking (If not already part of your app)
yarn add react-native-webview react-native-inappbrowser-reborn @react-native-community/netinfo
Then use it in your app:
import TransakWebView from '@transak/web-view';
function TransakReactNativeIntegration() {
return (
<TransakWebView
config={{
apiKey: '<your-api-key>',
environment: '<environment: STAGING/PRODUCTION>',
}}
onTransakEventHandler={(event, data) => console.log(event, data)}
/>
);
};
The component accepts all the valid props for react-native-webview except the following: injectJavaScript, sharedCookiesEnabled, injectedJavaScript, injectedJavaScriptBeforeContentLoaded
Prop | Description |
---|---|
config | Refer here for a full list of valid options |
onTransakEventHandler | Accepts callback function to listen to order related events |
MIT Licensed. Copyright (c) Transak Inc. 2022.
FAQs
Transak WebView Wrapper
We found that @transak/web-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.