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

How to change this component size #29

Open terry-fei opened 8 years ago

terry-fei commented 8 years ago

I don't need full screen to scan barcode, just need height 300 and width 100% to show this component. this is my code

<BarcodeScanner
    onBarCodeRead={this.barcodeReceived}
    style={{ height: 300, width: screenWidth }}
    torchMode={this.state.torchMode}
    cameraType={this.state.cameraType}
/>

This show correct size, but image was lose their shape.

react-native-barcodescanner v3.0.0

namxam commented 7 years ago

I guess this is a duplicate of #28