Socket
Socket
Sign inDemoInstall

@fidme/react-native-barcode-builder

Package Overview
Dependencies
494
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fidme/react-native-barcode-builder

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


Version published
Weekly downloads
9
increased by12.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@fidme/react-native-barcode-builder

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

Getting started

Step 1

Link React ART; open the Xcode project, and drag ART.xcodeproj from node_modules/react-native/Libraries/ART/ into the Libraries group in Xcode. Then select the root project and select "Build Phases" from the center view. There will be a section called "Link Binary With Libraries", expand it, press the + and select libART.a.

Step 2

Install @fidme/react-native-barcode-builder:

npm install @fidme/react-native-barcode-builder --save
Step 3

Start using the component

import Barcode from "@fidme/react-native-barcode-builder";

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

Keywords

FAQs

Last updated on 27 Jul 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc