mgcrea / vision-camera-barcode-scanner

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

`onBarcodeScanned` being called twice #7

Closed alexDevBR closed 10 months ago

alexDevBR commented 11 months 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.