0.1.1 • Published 11 days ago

react-native-barcoder v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

alt text

npm install react-native-barcoder

A minimal package for displaying a barcode on react-native.

import Barcode from 'react-native-barcoder';

const options = { /* add your options here*/ }

<Barcode value="barcoder" options={options}/>

options

set up the options parameter (taken from jsbarcode)

interface Options = {
  format: Format;
  width: number | { max?: number };
  height: number;
  color: string;
};

regarding each value inside options:

ValueTypeDefaultComment
formatFormat'CODE128'the format you want to use to display the barcode
widthint2the width of the barcode, use max to apply a limit
heightint100the height of the barcode
colorstringblackthe color of the bars of the barcode

NB: the minimum bar width that can be set using max width is 1. If the total width surpasses the max width, max width will be ignored and the barcode will be displayed with a bar width of 1

0.1.0

11 days ago

0.1.1

11 days ago

0.0.2

20 days ago

0.0.1

23 days ago