rn-barcode-aztec
A react-native component to generate AztecCode and QRcode.
This is based on this project
Aztec code is one of the standars in Aviation for E-ticket generator.
this module support iOS and Android
Installation
npm install rn-barcode-aztec
Usage
import React, { Component } from 'react'
import {View} from 'react-native';
import code from '@kirbi96/rn-barcode-aztec';
const Aztec = code.Aztec;
export const QRCodePrint = () =>{
return(
<View style={QRCodeArgs?.size ? {marginLeft: 20} : {marginLeft: 10}}>
<Aztec
value={"message"}
size={300}
/>
</View>
)
}
Available Props
prop | type | default value |
---|---|---|
value |
string |
http://facebook.github.io/react-native/ |
size |
number |
128 |
type |
number |
`1 |
bgColor |
string (CSS color) |
"#FFFFFF" |
fgColor |
string (CSS color) |
"#000000" |