I found that the bottleneck of this module is the barcode detection logic which is done on each frame.
Unfortunately, this computation is quite expensive and blocks the UI and leads to bad performance.
This pull request wraps the logic of BarcodeScannerView.onPreviewFrame in an AsyncTask to free the UI thread.
@andreaskeller Barcode scanning on android is added to react-native-camera now. It's worth joining hands with react-native-camera or adding in ios support here and claim barcode scanning only module.
I found that the bottleneck of this module is the barcode detection logic which is done on each frame. Unfortunately, this computation is quite expensive and blocks the UI and leads to bad performance. This pull request wraps the logic of BarcodeScannerView.onPreviewFrame in an AsyncTask to free the UI thread.