Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-native-qr-generator
Advanced tools
A React Native QR code image generator, that uses faster, native image rendering as opposed to other libraries, which rely on a Javascript/SVG implementation.
A React Native QR code image generator, that uses faster, native image rendering as opposed to other libraries, which rely on a Javascript/SVG implementation.
This library wraps two existing native QR code generator libraries:
Android: https://github.com/kenglxn/QRGen
iOS: https://github.com/gscarrone/iOS-QR-Code-Generator
$ npm install react-native-qr-generator --save
$ react-native link react-native-qr-generator
In your project's android/build.gradle
file, include the following:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-qr-generator
and add RNReactNativeQrcodeNative.xcodeproj
libRNReactNativeQrcodeNative.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)android/app/src/main/java/[...]/MainActivity.java
import com.zapper.QRCodePackage;
to the imports at the top of the filenew QRCodePackage()
to the list returned by the getPackages()
methodAppend the following lines to android/settings.gradle
:
include ':react-native-qr-generator'
project(':react-native-qr-generator').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-qr-generator/android')
Insert the following lines inside the dependencies block in android/app/build.gradle
:
compile project(':react-native-qr-generator')
In your project's android/build.gradle
file, include the following:
```
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
import QRCode from 'react-native-qr-generator'
return <QRCode size={200} value="https://www.zapper.com" />
Name | Type | Default | Description |
---|---|---|---|
value | string | - | String value to be encoded as a QR code |
size | integer | 200 | Size of the QR Code image, sets the width and height style properties of the view to this value |
foregroundColor | string | #000000 | Hex string for the main QR Code color |
backgroundColor | string | #FFFFFF | Hex string for the QR Code background color |
Android: https://github.com/kenglxn/QRGen
iOS: https://github.com/gscarrone/iOS-QR-Code-Generator
FAQs
A React Native QR code image generator, that uses faster, native image rendering as opposed to other libraries, which rely on a Javascript/SVG implementation.
The npm package react-native-qr-generator receives a total of 16 weekly downloads. As such, react-native-qr-generator popularity was classified as not popular.
We found that react-native-qr-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.