ideacreation / react-native-barcodescanner

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

Scanner area when setting scaleY parameter #22

Open jeremybviseo opened 8 years ago

jeremybviseo commented 8 years ago

When we set the scaleY parameter, real scanned area zone seems to be translated under the viewFinder rectangle. This make the scanner difficult to use.

andreaskeller commented 8 years ago

@jeremybviseo you could try and use branch version-2 which is a rewrite to not use dm77/barcodescanner anymore as with a project of mine there was an error in a part of the library which I could not fix easily. In this implementation the whole area is used to detect codes. To use it you can include the following in your package.json:

"react-native-barcodescanner": "git+https://github.com/ideacreation/react-native-barcodescanner/#version-2",

hope that helps.

andreaskeller commented 8 years ago

@jeremybviseo I have merged the version-2 branch into master and fixed import statement problems and a black screen after reloading the js. The version is published to npm. It would be awesome if you could close this issue when no problems remain.