Barcode scanning
See original GitHub issueHello everyone, I’m using react-native-qrcode-scanner to scan qrcode and it work great. But I saw that it also can read barcodes given that react native camera can. My problem is that I’ve tried with barcodes but I can’t get any reading.
What’s happening?
I can’t scan a barcode.
How can it be reproduced?
Here is the code I’m using. I’ve tried scanning all the barcode I have. To reproduce it just try scanning any barcode.
import QRCodeScanner from 'react-native-qrcode-scanner';
/* ... */
onRead = e => {
console.log(e);
}
/*...*/
render() {
return (
<QRCodeScanner
onRead={this.onRead.bind(this)}
ref={node => {
this.scanner = node;
}}
reactivateTimeout={300}
/>
)}
Build details?
I’m working on Android with these :
"react": "^16.2.0",
"react-native": "^0.51.1",
"react-native-camera": "^1.0.3",
"react-native-qrcode-scanner": "^1.0.1"
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Barcode scanning | ML Kit - Google Developers
With ML Kit's barcode scanning API, you can read data encoded using most standard barcode formats. Barcode scanning happens on the device, ...
Read more >QR & Barcode Scanner - Apps on Google Play
QR & Barcode Scanner app is the fastest QR code scanner / bar code scanner out there. QR & Barcode Scanner is an...
Read more >Free Barcode Scanner | Cognex
Enable enterprise-grade barcode scanning to your applications and websites. ... 1 Select barcode type(s) ... Postal Barcodes. Telepen. QR Code ...
Read more >QR Code & Barcode Scanner 17+ - App Store
Discover your world by scanning any QR code or barcode to get additional information including results from popular online services; Amazon, eBay and...
Read more >What is Barcode Scanning and Why is it Important?
Barcodes are machine-readable codes represented visually as numbers and parallel lines. When scanned by the laser beam of a barcode scanner, these symbols ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I get the same result scanning barcode while oriented in landscape
I finally found that i can only scan barcode if my phone is scanning while oriented in landscape. I get the same behaviour in react-native-camera.
Anyway, thank you guys for your help