# react-native-barcode-qrcode

> 采用React Native WebView组件实现的BarCode（条形码）、二维码

Latest version **1.0.0** (published 2015-12-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-barcode-qrcode
pnpm add react-native-barcode-qrcode
yarn add react-native-barcode-qrcode
bun add react-native-barcode-qrcode
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-12-20 |
| First published | 2015-12-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 陈春勇 |
| Maintainers | chenchunyong |
| Keywords | react, native, webView, barcode, qrcode |

## Links

- npm: https://www.npmjs.com/package/react-native-barcode-qrcode
- Repository: https://github.com/chenchunyong/react-native-barCode
- Homepage: https://github.com/chenchunyong/react-native-barCode#readme
- Issues: https://github.com/chenchunyong/react-native-barCode/issues
- npm.io page: https://npm.io/package/react-native-barcode-qrcode

## Dependencies (1)

- [qr.js](https://npm.io/package/qr.js.md) 0.0.0

## 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

- 1.0.0 (latest) — 2015-12-20

## README

# react-native-barCode
采用React Native WebView组件实现的BarCode（条形码）、QRCode(二维码),其中QRCode的代码是参考 
[qrcode](https://github.com/cssivision/react-native-qrcode),修复了qrcode图片会出现滚动条问题。

实现的原理:在`WebView`组件下,用`canvas`组件画出BarCode、QRCode。

效果如下:

![条形码与二维码](https://github.com/chenchunyong/react-native-barCode/raw/master/barCode.png);

# Install
 
 安装包:
 
`npm i react-native-barCode --save`

通过引用`import {BarCode,QRCode} from 'react-native-barCode'`来使用

# Usage

```
<BarCode    value={this.props.payCode}
            width="225"
            height="90"
            bgColor="#e7e7eb"
           />
    <QRCode value={this.props.payCode}
            bgColor="#fff"
            fgColor="#333"/>
```

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