reactive-qr
Advanced tools
Comparing version
{ | ||
"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. |
7025
17.08%66
106.25%