Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-native-barcode-expo

1.1.1 • Public • Published

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

import Barcode from 'react-native-barcode-expo';
 
<Barcode value="Hello World" format="CODE128" />

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

Properties

Property Description
value What the barcode stands for (required).
format Which barcode type to use (default: CODE128).
width Width of a single bar (default: 2)
height Height of the barcode (default: 100)
text Override text that is displayed.
textColor Color of the text (default: #000000)
lineColor Color of the bars (default: #000000)
background Background color of the barcode (default: #ffffff)
onError Handler for invalid barcode of selected format

Install

npm i react-native-barcode-expo

DownloadsWeekly Downloads

372

Version

1.1.1

License

Apache-2.0

Unpacked Size

827 kB

Total Files

228

Last publish

Collaborators

  • avatar