React Native Svg Barcode
npm install react-native-svg-barcodeRefactored code from:
react-native-barcode-generator
A React Native component that displays barcodes using SVG.

``sh`
npm install react-native-svg react-native-svg-barcode
Or
`sh`
yarn add react-native-svg react-native-svg-barcode
| Prop | Required | Type | Description |
| ---------- | -------- | ----------------------- | ------------------------------------------------------- |
| value | YES | string | Value to encode into a barcode. |number
| width | NO | | The width of a single bar. |number
| maxWidth | NO | | The max width of the barcode. |number
| height | NO | | The height of the barcode. |Format
| format | NO | | Select which barcode type to use. |string
| lineColor | NO | | Sets the color of the lines. |string
| background | NO | | Set the color of the container. |ReactNode
| text | NO | or string | An optional text that will be render under the barcode. |TextStyle
| textStyle | NO | | Styles to be applied on the text component. |ViewStyle
| style | NO | | Styles to be applied on the container. |function` | An optional error handler. |
| onError | NO |
- CODE39
- CODE128
- CODE128A
- CODE128B
- CODE128C
- EAN13
- EAN8
- EAN5
- EAN2
- UPC
- UPCE
- ITF14
- ITF
- MSI
- MSI10
- MSI11
- MSI1010
- MSI1110
- pharmacode
- codabar
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library