🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

reactive-qr

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-qr - npm Package Compare versions

Comparing version

to
0.1.5

2

package.json
{
"name": "reactive-qr",
"version": "0.1.4",
"version": "0.1.5",
"description": "React component for reading and generating QR codes",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -32,1 +32,35 @@ # Reactive-QR

```
## Props
### Configurations
#### shouldDecode - Boolean | default: true
Sometimes we need to have a condition to stop or allow deciding images
#### rearCamera - Boolean | default: true
Choosing between rear and front cameras.
#### className - String
className for `VideoStream` component wrapper.
#### style - Object | default: {}
style object for wrapper component
#### videoStyle - Object | default: {}
style object for HTML5 video component, which displays camera stream
### Events
#### onInit - Function(error: Boolean, message: String)
This function triggers when camera is ready to process images. This mainly happens when HTML5 Camera API receives callback that camera exists on device and hardware initialization is completed.
#### onCode - Function(code: String)
Callback when there is a valid decoded QR code text. Sometimes QR code text can be irrelevant because of the image decoding issues when there is a lighting issues, or image quality is poor. So you definitely have to check decoded text.