Socket
Socket
Sign inDemoInstall

@transak/web-view

Package Overview
Dependencies
525
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @transak/web-view

Transak WebView Wrapper


Version published
Maintainers
3
Created

Readme

Source

Transak WebView

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.

Installation and usage

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)}
    />
  );
};

Props

The component accepts all the valid props for react-native-webview except the following: injectJavaScript, sharedCookiesEnabled, injectedJavaScript, injectedJavaScriptBeforeContentLoaded

PropDescription
configRefer here for a full list of valid options
onTransakEventHandlerAccepts callback function to listen to order related events

License

MIT Licensed. Copyright (c) Transak Inc. 2022.

FAQs

Last updated on 30 Jun 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc