
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
react-native-barcode-creator
Advanced tools
Component to generate QRCode, Code128, PDF417, AZTEC, EAN-13 and UPC-A natively for react native.
yarn add react-native-barcode-creator
cd ios && pod install
npx expo install react-native-barcode-creator
npx expo prebuild
remember to use the Development Build and not Expo Go
Prop | Description | Default |
---|---|---|
value | Mandatory - The content to add to the Barcode. (EAN-13 should be 13 integers on a string like "5901234123457", UPCA has to be 12 characters "590123412345") | None |
encodedValue | Use instead of value, accepts object with base64 and messageEncoded. MessageEncoded only accepts "ISO-8859-1", "UTF-8", "UTF-16". Ex: {base64: "", messageEncoded: ""} | None |
style | Style attributes for the view, as expected in a standard View . | None |
format | Mandatory The format to show in the Barcode, it can be QR, AZTEC, PDF417, CODE128, EAN13 and UPCA. | BarcodeFormat.QR |
background | The Background Color of the Barcode. (rgba or rgb) | #FFFFFF |
foregroundColor | The foreground color to use on the Barcode. (rgba or rgb) |
import { BarcodeCreatorView } from "react-native-barcode-creator";
<BarcodeCreatorView
value={'Hello World'}
background={'#FFFFFF'}
foregroundColor={'#000000'}
format={BarcodeFormat.AZTEC}
style={styles.box}
/>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
Component to generate QRCode, Code128, PDF417, AZTEC, EAN-13 and UPC-A natively for react native.
The npm package react-native-barcode-creator receives a total of 6,255 weekly downloads. As such, react-native-barcode-creator popularity was classified as popular.
We found that react-native-barcode-creator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.