ideacreation / react-native-barcodescanner

A barcode scanner component for react native - not maintained anymore - use react-native-camera
MIT License
538 stars 162 forks source link

Only able to read 2D formats (QR, Data Matrix, etc.) #37

Closed amitaigat closed 8 years ago

amitaigat commented 8 years ago

It seems I'm unable to read any of the supported formats except for the 2D ones. Maybe I'm missing something but the QR Code and the other 2D formats are all working great! However, when I try to read a Code 39 for example, it simply doesn't get picked up. Any thoughts?

ThaJay commented 8 years ago

for me, EAN_13 only reads vertical in portrait or horizontal in landscape.

ddzyndra commented 8 years ago

Also same issue, can't read EAN_13 in portrait mode. Can it be fixed somehow ?

Arwiz commented 8 years ago

I am able to scan only QR code

AnujWizni commented 8 years ago

How to support multiple barcode types as i am only able to scan QR codes

ddzyndra commented 8 years ago

Try to scan EAN_13 in landscape mode

andreaskeller commented 8 years ago

You could only scan 1D barcodes in landscape mode. With the newest version they can be scanned both in portrait and landscape mode.

ThaJay commented 8 years ago

This is actually not the case. Before the change it only scanned 1D barcodes vertically in portrait mode. and horizontally in landscape mode. Now it only scans them horizontally in portrait mode and landscape mode.

There is still no way it scans a 1D barcode at different angles. Also, the stretched (instead of fitted) camera view looks even worse in landscape mode now. I like the old behaviour better to be honest. I can see the logic of having to align the screen to the length of the barcode.

Being able to scan 1D barcodes both horizontally and vertically would be best. As you chose this solution, I reckon that's not in your control?