0.1.3 • Published 7 years ago

react-native-promptpay-qr v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-native-promptpay-qr

NPM version react-native react node version npm download

Simple QR code for Promptpay in React native

Getting Started

Installation

npm i react-native-promptpay-qr --save

Basic Usage

import React, { Component } from 'react'
import { AppRegistry, View } from 'react-native'
import PromptPayQR from 'react-native-promptpay-qr'

class QRcode extends Component {
  render() {
    return (
        <View style={{flex: 1}}>
            <PromptPayQR
              payCode='081-xxx-xxxx'
              amount={200}
            />
        </View>
    )}
}

AppRegistry.registerComponent('PromptPayQR', () => PromptPayQR)

Properties


PropsTypeDefaultDescription
payCodestring-ID card number or Phone number ( 081-xxx-xxxx or 1-xxxx-xxxxx-xx-x )
amountnumber0quantity of pay
sizenumber128size of qr code
bgColorstring'#000'background of qr code
fgColorstring'#FFF'foreground of qr code

References

License

react-native-promptpay-qr is released under the MIT license.