react-qr-reader
react-qr-reader copied to clipboard
React component for reading QR codes from webcam.
* add missing dependencies * add additional effect which stops the scanner when the component unmounts Closes #258 **HINT:** I only tested this roughly on my Chrome (Mac) and Chrome...
More info : at t.selectBestPatterns (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:222393) at t.find (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:218235) at t.detect (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:223801) at t.decode (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:227258) at e.t.decodeBitmap (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:355548)
Is there a way to stop the camera after closing it.
Hello Sir , I have implemented this NPM package in my React js project , I want to open back camera in mobile devices instead of front camera , although...
Somehow i noticed when the component is mounted it starts to throw the exception Something of what I mean is as shown below: **``` 613 e is undefined at t.selectBestPatterns...
after getting the result , not camera will not stop running. When i change my route/path to another the camera is still running in background. how can i stop running...
example code : ``` { if (!!result) { setScanResult(result.getText()); } if (!!err) { console.error('HMMM ', err); // logs an error continuously } }} /> ``` e.g. ![Screenshot 2022-07-21 at 12...
i set scanDelay={5000}, it still work when the camera doesn't detected qr code, but when i keep the camera on qrcode, scanDelay doesn't work, it scan continuously.
Please help me on this I am working on react app for changing camera front and how to use constraints using react hooks onclick variable changing not working for me
Looking for ViewFinder to be implemented on QR code reader but docs don't adequately demonstrate how to use. Previously showViewFinder accepted a Boolean value, which makes sense whether you want...