Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
rn-barcode-zxing
Advanced tools
npm install rn-barcode-zxing react-native-vision-camera lottie-react-native lottie-ios
yarn add rn-barcode-zxing react-native-vision-camera lottie-react-native lottie-ios
Inside your gradle.properties
file, add the enableCodeScanner
flag:
VisionCamera_enableCodeScanner=true
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<key>NSCameraUsageDescription</key>
<string>Use the built-in Camera to scan any QR code</string>
import { ScanCode } from 'rn-barcode-zxing';
<SafeAreaView style={[{ flex: 1 }, backgroundStyle]}>
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
<View style={{ flex: 1 }}>
<ScanCode onScanBarcode={(ScanBarcode) => console.log({ ScanBarcode })} />
</View>
</SafeAreaView>;
import { BarcodeScanner } from 'rn-barcode-zxing';
import BarcodeMask from 'react-native-barcode-mask';
<View style={[styles.content, StyleSheet.flatten(contentStyle)]}>
<BarcodeScanner
style={[styles.cameraStyle, StyleSheet.flatten(cameraStyle)]}
shouldScan={true}
onBarcodesDetected={onScanBarcode}
>
<BarcodeMask
width={300}
height={300}
showAnimatedLine={true}
outerMaskOpacity={0.8}
edgeHeight={48}
edgeWidth={48}
animatedLineColor={'#FFFFFF'}
animatedLineHeight={3}
backgroundColor={'rgba(3, 3, 3, 0.3)'}
animatedLineWidth={204}
lineAnimationDuration={2000}
/>
</BarcodeScanner>
</View>;
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
rn-barcode-zxing
The npm package rn-barcode-zxing receives a total of 69 weekly downloads. As such, rn-barcode-zxing popularity was classified as not popular.
We found that rn-barcode-zxing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.