Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-postpay-widget

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-postpay-widget

React Native Postpay Widget

  • 0.1.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
179
increased by57.02%
Maintainers
1
Weekly downloads
 
Created
Source

npm version npm

NPM

Descriptions

Postpay SDK for React Native, this library supports both iOS & Android

Prerequisites

This library uses react-native-webview to render webview. Therefore this library needs to be installed AND linked into your project to work.

Other than the above dependency this library uses pure javascript and supports both iOS and Android

Example

You can check it out react-native-postpay-widget-example

Getting started

$ npm install react-native-postpay-widget --save

  • OR

$ yarn add react-native-postpay-widget

Usage

import { PostpayWidget } from 'react-native-postpay-widget';

<PostpayWidget
    merchantId="id_c56705f1a9304e8c8a16e1da98ec8734"
    widgetType='product'
    amount="20050"
    currency="AED"
    locale="en"
    widgetUrl="https://widgets-dev.postpay.io"
    numInstalments={2}
/>
Props
type PostpayWidgetProps = {
    merchantId: Number,
    widgetType: 'payment-summary' | 'product',
    locale?: 'en' | 'ar',
    widgetUrl?: String,
    amount: Number,
    currency: String,
    closeButton?: Boolean,
    numInstalments?: Number,
    style?: StyleProp<ViewStyle>,
};

License

This module is MIT licensed


Keywords

FAQs

Package last updated on 07 Dec 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc