
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-native-1d-barcodes
Advanced tools
A React Native component to generate one-dimensional (1D) barcodes.
npm i react-native-1d-barcodes --save
# or
yarn add react-native-1d-barcodes
import React, { Component } from 'react'
import { View } from 'react-native';
import { Barcode, Formats } from 'react-native-1d-barcodes';
export default class DisplayBarcode extends Component {
render() {
return (
<View style={{ flex: 1 }}>
<Barcode
bgColor={'#FFFFFF'}
fgColor={'#000000'}
format={Formats.UPC_A}
value={'01234567890'}
width={250}
/>
</View>
);
}
}
value
and the module will calculate the
check digit and render the UPC barcode in a WebView canvas.prop | type | default value |
---|---|---|
value | string (numeric) | 012345678905 |
format | string | Formats.UPC_A |
width | number | 250 |
bgColor | string (CSS color) | "#FFFFFF" |
fgColor | string (CSS color) | "#000000" |
Note: height
is calculated based on provided width
.
FAQs
react-native 1D barcode generator
The npm package react-native-1d-barcodes receives a total of 2 weekly downloads. As such, react-native-1d-barcodes popularity was classified as not popular.
We found that react-native-1d-barcodes demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.