@kichiyaki/react-native-barcode-generator
TypeScript icon, indicating that this package has built-in type declarations

0.6.7 • Public • Published

@kichiyaki/react-native-barcode-generator

Screenshot

A React-Native component for generating barcodes.

Installation

Using npm:

npm install --save react-native-svg @kichiyaki/react-native-barcode-generator

or using yarn:

yarn add react-native-svg @kichiyaki/react-native-barcode-generator

Properties

Prop Type Description
value string the text to be encoded
width number the width of a single bar
maxWidth number the max width of the barcode
height number the height of the barcode
format string select which barcode type to use
lineColor string set the color of a single bar
background string set the color of the container
text component an optional text that will be render under the barcode
textStyle object styles to be applied on the text component
style object styles to be applied on the container
onError function an optional error handler

Supported formats

Only flat versions are available for now.

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

Package Sidebar

Install

npm i @kichiyaki/react-native-barcode-generator

Weekly Downloads

7,011

Version

0.6.7

License

MIT

Unpacked Size

8.41 kB

Total Files

7

Last publish

Collaborators

  • kichiyaki