2.0.4 • Published 1 year ago

barcode-builder-svg v2.0.4

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
1 year ago

react-native-barcode-builder

React Native component to generate barcodes. Uses JsBarcode for encoding of data.

Getting started

Step 1

This library uses react-native-svg to draw vector graphics.

Step 2

Install react-native-barcode-builder:

    npm install react-native-barcode-builder --save

Step 3

Start using the component

import Barcode from "react-native-barcode-builder";

<Barcode value="Hello World" format="CODE128" />;

You can find more info about the supported barcodes in the JsBarcode README.

demo

Properties

PropertyDescription
valueWhat the barcode stands for (required).
formatWhich barcode type to use (default: CODE128).
widthWidth of a single bar (default: 2)
heightHeight of the barcode (default: 100)
textOverride text that is displayed.
lineColorColor of the bars and text (default: #000000)
backgroundBackground color of the barcode (default: #ffffff)
onErrorHandler for invalid barcode of selected format
2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago