Socket
Book a DemoInstallSign in
Socket

react-native-barcode-expo

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-barcode-expo

React Native component to generate barcodes. Uses [JsBarcode](https://github.com/lindell/JsBarcode) for encoding of data.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
319
157.26%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

react-native

FAQs

Package last updated on 31 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts