Skip to content

Repository files navigation

react-native-barcode-builder-expo

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

Getting started

Step 1

Install react-native-barcode-expo:

yarn add react-native-barcode-expo

Step 2

Start using the component

importBarcodefrom'react-native-barcode-expo';<Barcodevalue="Hello World"format="CODE128"/>

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

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.
textColorColor of the text (default: #000000)
lineColorColor of the bars (default: #000000)
backgroundBackground color of the barcode (default: #ffffff)
onErrorHandler for invalid barcode of selected format

About

Component for generating barcode in react native app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages