Gathering detailed insights and metrics for rn-qr-generator
Gathering detailed insights and metrics for rn-qr-generator
Gathering detailed insights and metrics for rn-qr-generator
Gathering detailed insights and metrics for rn-qr-generator
react-native-qrcode-styled
A fully customizable QR Code generator for React Native based on react-native-svg and javascript-qrcode.
rn-qrcode-generator
generating qrcode
@masumdev/rn-qrcode
A powerful and easy-to-use QR code scanning and generation library for React Native applications.
react-native-qrcode-rounded
A fully customizable QR Code generator for React Native based on react-native-svg and javascript-qrcode.
A QR code image generator and detector for React Native.
npm install rn-qr-generator
Typescript
Module System
Node Version
NPM Version
63.7
Supply Chain
54.2
Quality
69.7
Maintenance
50
Vulnerability
94.1
License
Java (46.59%)
Objective-C (32.45%)
JavaScript (14.31%)
Starlark (3.81%)
Ruby (2.84%)
Total Downloads
1,203,310
Last Day
456
Last Week
20,595
Last Month
178,328
Last Year
677,865
MIT License
152 Stars
53 Commits
23 Forks
5 Watchers
4 Branches
5 Contributors
Updated on May 28, 2025
Latest Version
1.4.3
Package Id
rn-qr-generator@1.4.3
Unpacked Size
110.88 kB
Size
66.84 kB
File Count
20
NPM Version
10.2.3
Node Version
20.10.0
Published on
Dec 19, 2024
Cumulative downloads
Total Downloads
Last Day
-39.1%
456
Compared to previous day
Last Week
-60.9%
20,595
Compared to previous week
Last Month
27.5%
178,328
Compared to previous month
Last Year
161.9%
677,865
Compared to previous year
1
https://www.npmjs.com/package/rn-qr-generator
$ npm install rn-qr-generator --save
$ react-native link rn-qr-generator
Linking is not needed anymore. react-native@0.60.0+
supports dependencies auto linking.
For iOS you also need additional step to install auto linked Pods (Cocoapods should be installed):
cd ios && pod install && cd ../
Libraries
➜ Add Files to [your project's name]
node_modules
➜ rn-qr-generator
and add RNQrGenerator.xcodeproj
libRNQrGenerator.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.gevorg.reactlibrary.RNQrGeneratorPackage;
to the imports at the top of the filenew RNQrGeneratorPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
1rootProject.name = 'MyApp' 2include ':app' 3 4+ include ':rn-qr-generator' 5+ project(':rn-qr-generator').projectDir = new File(rootProject.projectDir, '../node_modules/rn-qr-generator/android')
android/app/build.gradle
:
1dependencies { 2+ compile project(':rn-qr-generator') 3}
1import RNQRGenerator from 'rn-qr-generator'; 2 3RNQRGenerator.generate({ 4 value: 'https://github.com/gevgasparyan/rn-qr-generator', 5 height: 100, 6 width: 100, 7}) 8 .then(response => { 9 const { uri, width, height, base64 } = response; 10 this.setState({ imageUri: uri }); 11 }) 12 .catch(error => console.log('Cannot create QR code', error)); 13 14// Detect QR code in image 15RNQRGenerator.detect({ 16 uri: PATH_TO_IMAGE 17}) 18 .then(response => { 19 const { values } = response; // Array of detected QR code values. Empty if nothing found. 20 }) 21 .catch(error => console.log('Cannot detect QR code in image', error));
input properties
Property | Type | Description |
---|---|---|
value | string | Text value to be converted into QR image. (required) |
width | number | Width of the QR image to be generated. (required) |
height | number | Height of the QR image to be generated. (required) |
backgroundColor | string | Background color of the image. (white by default) |
color | string | Color of the image. (black by default) |
fileName | string | Name of the image file to store in FileSystem. (optional) |
correctionLevel | string | Data restoration rate for total codewords. Available values are 'L', 'M', 'Q' and 'H'. ('H' by default) |
base64 | boolean | If true will return base64 representation of the image. (optional, false by default) |
padding | Object | Padding params for the image to be generated: {top: number, left: number, bottom: number, right: number}. (default no padding) |
payload
Property | Type | Description |
---|---|---|
uri | string | Path of the generated image. |
width | number | Width of the generated image. |
height | number | Height of the generated image. |
base64 | boolean | Base64 encoded string of the image. |
input properties
Property | Type | Description |
---|---|---|
uri | string | Local path of the image. Can be skipped if base64 is passed. |
base64 | string | Base64 representation of the image to be scanned. If uri is passed this option will be skipped. |
payload
Property | Type | Description |
---|---|---|
values | string[] | Array of detected QR code values. Empty if nothing found. |
type | string | Type of detected code. |
The following barcode types are currently supported for decoding:
Example of 2FA QR code with Time Based (TOTP) or Counter Based (HOTP)
RNQRGenerator.generate({
...
value: 'otpauth://totp/Example:google@google.com?secret=HKSWY3RNEHPK3PXP&issuer=Issuer',
})
More information about totp can be found here.
This module uses Zxing
library for encoding and decoding codes ( ios, Android).
Some simulators may not generate qr code properly. Use real device if you get an error.
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 3/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More