0.6.8 • Published 2 years ago

@busychild/react-native-barcode-generator v0.6.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

PropTypeDescription
valuestringthe text to be encoded
widthnumberthe width of a single bar
maxWidthnumberthe max width of the barcode
heightnumberthe height of the barcode
formatstringselect which barcode type to use
lineColorstringset the color of a single bar
backgroundstringset the color of the container
textcomponentan optional text that will be render under the barcode
textStyleobjectstyles to be applied on the text component
styleobjectstyles to be applied on the container
onErrorfunctionan 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