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

There is a big issue on 'resume event' fired #35

Open TanTan-TT opened 8 years ago

TanTan-TT commented 8 years ago

Hi,following code can make my app hang

in file BarcodeScannerView

public void onResume() {
    mPreview.startCamera(); // workaround for reload js
}

First, I open barcode scanner for scanning qrcode, And then, I close scanner and navigate to another page Then,when I open camera for taking some pics, and then close camera. Above code will run and keeping trying to scan qrcode, and then my app hangs