# react-native-promptpay-qr

> Simple QR code for Promptpay in React native

Latest version **0.1.3** (published 2017-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-promptpay-qr
pnpm add react-native-promptpay-qr
yarn add react-native-promptpay-qr
bun add react-native-promptpay-qr
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2017-09-02 |
| First published | 2017-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Kitti Pariyaakkarakul |
| Maintainers | zondezatera |
| Keywords | promptpay, react, react native |

## Links

- npm: https://www.npmjs.com/package/react-native-promptpay-qr
- Repository: https://github.com/zondezatera/react-native-promptpay-qr
- Homepage: https://github.com/zondezatera/react-native-promptpay-qr#readme
- Issues: https://github.com/zondezatera/react-native-promptpay-qr/issues
- npm.io page: https://npm.io/package/react-native-promptpay-qr

## Dependencies (2)

- [promptpay-qr](https://npm.io/package/promptpay-qr.md) ^0.4.1
- [react-native-qrcode](https://npm.io/package/react-native-qrcode.md) ^0.2.6

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2017-09-02
- 0.1.2 — 2017-09-02
- 0.1.1 — 2017-09-02
- 0.1.0 — 2017-09-02
- 0.0.2 — 2017-09-01
- 0.0.1 — 2017-09-01

## README

# react-native-promptpay-qr

[![NPM version][npm-image]][npm-url]
![react-native](https://img.shields.io/badge/react--native-%3E%3D_0.46.0-green.svg)
![react](https://img.shields.io/badge/react-%3E16.0.0-green.svg)
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]

[npm-image]: http://img.shields.io/npm/v/react-native-promptpay-qr.svg?style=flat-square
[npm-url]: http://npmjs.org/package/react-native-promptpay-qr
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/react-native-promptpay-qr.svg?style=flat-square
[download-url]: https://npmjs.org/package/react-native-promptpay-qr

Simple QR code for Promptpay in React native

## Getting Started

### Installation

```bash
npm i react-native-promptpay-qr --save
```

### Basic Usage

```JavaScript
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
---
| Props | Type | Default | Description |
|:------|:-----|:--------|:-----------|
| payCode | string | - | ID card number or Phone number ( 081-xxx-xxxx or 1-xxxx-xxxxx-xx-x ) |
| amount | number | 0 | quantity of pay |
| size | number | 128 | size of qr code |
| bgColor | string | '#000' | background of qr code |
| fgColor | string | '#FFF' | foreground of qr code |

## References

- https://github.com/dtinth/promptpay-qr
- https://github.com/cssivision/react-native-qrcode

## License

react-native-promptpay-qr is released under the MIT license.

---
_Source: https://npm.io/package/react-native-promptpay-qr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
