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

Orientation and size of view finder #32

Closed sahilaug closed 8 years ago

sahilaug commented 8 years ago

I noticed that QR code is easily read in portrait but bar code is read easily in landscape orientation. Is this the known behaviour or am I doing something wrong ? Second question is apart from the viewFinderBackgroundColor, viewFinderBorderColor, viewFinderBorderWidth, viewFinderBorderLength, viewFinderShowLoadingIndicator given in the README, can I edit any other styling of the view finder like height, width etc. ?

ddzyndra commented 8 years ago

I have the same issue. @sahilaug Did you manage to resolve this issue ?

andreaskeller commented 8 years ago

@sahilaug orientation bug is fixed with the newest version.

viewFinderHeight and viewFinderWidth exist as well. You could also provide your own custom viewfinder with showViewFinder={false} and your viewfinder as a child of the barcode scanner component.