0.1.18 • Published 2 years ago

react-native-postpay-widget v0.1.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm version npm.io npm.io npm.io 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


0.1.18

2 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago