# react-native-barcode-builder

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

Latest version **2.0.0** (published 2020-03-29) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install react-native-barcode-builder
pnpm add react-native-barcode-builder
yarn add react-native-barcode-builder
bun add react-native-barcode-builder
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-03-29 |
| First published | 2016-12-20 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 231.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 173 |
| Author | WonSikin |
| Maintainers | wonsikin |
| Keywords | react-native, barcode |

## Links

- npm: https://www.npmjs.com/package/react-native-barcode-builder
- Repository: https://github.com/wonsikin/react-native-barcode-builder
- Homepage: https://github.com/wonsikin/react-native-barcode-builder#readme
- Issues: https://github.com/wonsikin/react-native-barcode-builder/issues
- npm.io page: https://npm.io/package/react-native-barcode-builder

## Dependencies (2)

- [jsbarcode](https://npm.io/package/jsbarcode.md) ^3.8.0
- [@react-native-community/art](https://npm.io/package/@react-native-community/art.md) ^1.2.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-03-29
- 1.0.5 — 2018-03-17
- 1.0.4 — 2018-03-16
- 1.0.3 — 2018-01-25
- 1.0.2 — 2017-08-23
- 1.0.1 — 2017-05-31
- 1.0.0 — 2017-05-31
- 0.3.0 — 2017-04-26
- 0.2.1 — 2017-01-31
- 0.2.0 — 2017-01-23
- 0.1.0 — 2016-12-21
- 0.0.5 — 2016-12-21
- 0.0.4 — 2016-12-21
- 0.0.3 — 2016-12-21
- 0.0.2 — 2016-12-21
- … 1 more at https://npm.io/package/react-native-barcode-builder/versions

## README

# react-native-barcode-builder

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

## Getting started

### Step 1

This library uses [@react-native-community/art](https://github.com/react-native-community/art) to draw vector graphics.

### Step 2

Install `react-native-barcode-builder`:

```shell
    npm install react-native-barcode-builder --save
```

### Step 3

Start using the component

```javascript
import Barcode from "react-native-barcode-builder";

<Barcode value="Hello World" format="CODE128" />;
```

You can find more info about the supported barcodes in the [JsBarcode README](https://github.com/lindell/JsBarcode#supported-barcodes).

![demo](./images/example.png)

## Properties

| Property   | Description                                        |
| ---------- | -------------------------------------------------- |
| value      | What the barcode stands for (required).            |
| format     | Which barcode type to use (default: CODE128).      |
| width      | Width of a single bar (default: 2)                 |
| height     | Height of the barcode (default: 100)               |
| text       | Override text that is displayed.                   |
| lineColor  | Color of the bars and text (default: #000000)      |
| background | Background color of the barcode (default: #ffffff) |
| onError    | Handler for invalid barcode of selected format     |

---
_Source: https://npm.io/package/react-native-barcode-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
