Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

app-barcode-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-barcode-generator

![janis-logo](brand-logo.png)

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@janiscommerce/app-barcode-generator

janis-logo

NPM Version

React native components for generating barcode and QRcode. The library provides two components according to the type of code you need to create

Installation

npm i @janiscommerce/app-barcode-generator

Barcode

Usage

import {Barcode} from '@janiscommerce/app-barcode-generator';
import {Text} from 'react-native';

<Barcode value="1234534" format="EAN8" />;
<Barcode value="1234534" format="EAN8" text={<Text>1234534</Text>} />;
<Barcode value="1234534" format="EAN8" onError={(error) => console.log(error)} />;

Props

PropTypeDescriptiondefault valuerequired
valuestringvalue to create barcodeyes
formatstringformat of barcode. See barcode typeyes
textfunctionReact native component to show value below barcodeno
backgroundColorstringBackground color for barcode#FFFno
onErrorfunctionCallback to execute when has errorno

Supported formats

  • CODE39
  • CODE128
  • CODE128A
  • CODE128B
  • CODE128C
  • EAN13
  • EAN8
  • EAN5
  • EAN2
  • UPC
  • UPCE
  • ITF14
  • ITF
  • MSI
  • MSI10
  • MSI11
  • MSI1010
  • MSI1110
  • pharmacode
  • codabar

QRCode

Usage

import {QRCode} from '@janiscommerce/app-barcode-generator';

<QRCode value="1234534" />;
<QRCode value="1234534" size={150} />;

Props

PropTypeDescriptiondefault valuerequired
valuestringvalue to create QRCodeyes
sizenumberSet width and heigth of QRCode100no
foregroundColorfunctionReact native component to show value below barcode#000no
backgroundColorstringBackground color for barcode#FFFno

FAQs

Package last updated on 16 May 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc