mgcrea / vision-camera-barcode-scanner

High performance barcode scanner for React Native using VisionCamera
MIT License
87 stars 11 forks source link

`onBarcodeScanned` being called twice #7

Closed alexDevBR closed 1 year ago

alexDevBR commented 1 year ago

Using the following on android:

  const {props: cameraProps, highlights} = useBarcodeScanner({
    fps: 5,
    scanMode: 'once',
    onBarcodeScanned: barcodes => {
      'worklet';
      console.log('scanned', barcodes)
    },
  });

Everytime a barcode is scanned the callback gets called twice. with the same contents.