react-native-awesome-barcode
v0.1.4
Published
A react native library for generating barcodes using JsBarcode and xmldom.
Maintainers
Readme
react-native-awesome-barcode
A react native library for generating barcodes.
- It uses JsBarcode and is fully compatible with JsBarcode.
- It uses react-native-svg to render the barcodes.
- It is written in typescript.

Installation
yarn add react-native-svg react-native-awesome-barcodeUsage
For the list of options that can be passed to the Barcode component, see the JsBarcode documentation.
To use the JSX components, you can import them from the library package like so:
import { Barcode } from 'react-native-awesome-barcode';
// ...
<Barcode value={'Hello World!'} />
To get the SVG text, you can use the barcodeSvg function:
import { barcodeSvg } from 'react-native-awesome-barcode';
// ...
const svgText = barcodeSvg('Hello World!');
Run example app
To run the example app do:
yarn example startContributing
License
MIT
Made with create-react-native-library
