react-native-qr-barcode
v0.6.4
Published
React Native WebView component of BarCode and QRCode
Downloads
26
Maintainers
Readme
react-native-barCode
React Native WebView component of BarCode and QRCode. Based on chenchunyong/react-native-barCode
Setup
npm i react-native-bar-qr-code --save
Usage
import {BarCode,QRCode} from 'react-native-qr-barcode'
/**
* value: Encrypted barcode text (default: '12345678901234567890')
* bgColor: Barcode background color (default: 'white')
* height: Barcode height (default: 90)
* width: Barcode width (default: 225)
*/
<BarCode
value={this.props.payCode}
bgColor="#e7e7eb"
/>
/**
* value: Encrypted QR code text (default: '12345678901234567890')
* bgColor: QR code background color (default: 'white')
* fgColor: QR code foreground color (default: 'black')
* size: QR code size (default: 128)
*/
<QRCode value={this.props.payCode}
fgColor="#333"/>