@react-native-oh-tpl/react-native-barcode-builder
v2.0.0-0.0.1
Published
React Native component to generate barcodes. Uses [JsBarcode](https://github.com/lindell/JsBarcode) for encoding of data.
Downloads
10
Readme
react-native-barcode-builder
React Native component to generate barcodes. Uses JsBarcode for encoding of data.
Getting started
Step 1
Link React ART; open the Xcode project, and drag ART.xcodeproj
from node_modules/react-native/Libraries/ART/
into the Libraries
group in Xcode.
Then select the root project and select "Build Phases" from the center view. There will be a section called "Link Binary With Libraries", expand it, press the + and select libART.a
.
Step 2
Install react-native-barcode-builder
:
npm install react-native-barcode-builder --save
Step 3
Start using the component
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.