question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello 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:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mark5566commented, Nov 20, 2018

I get the same result scanning barcode while oriented in landscape

1reaction
Adwichcommented, Apr 12, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found