Socket
Socket
Sign inDemoInstall

@transak/react-native-sdk

Package Overview
Dependencies
525
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @transak/react-native-sdk

Transak React Native SDK that allows you to easily integrate the fiat on/ramp


Version published
Weekly downloads
161
decreased by-47.9%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Transak React Native SDK

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

# Using yarn
$ yarn add @transak/react-native-sdk

# Using npm
$ npm install @transak/react-native-sdk

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

Example usage

import TransakWebView from '@transak/react-native-sdk';

function TransakReactNativeSdkIntegration() {
  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

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

FAQs

Last updated on 05 Jul 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