Limit scanned area, expo-camera or expo-barcode-camera

Please provide the following:

  1. 42
  2. Android

Hello, I am searching for a possible way to reduce the camera scanning area, for the barcode scanner. For example, react-native-camera has a prop called → rectOfInterest, where you can write: x,y, width, height and make just that area scannable.

I have built a mask to show “the scannable area”, where I got the scanned barcode bounds
but the bad side is that for example if there are multiple barcodes (usually there are), you have to cover the other barcode with your hand or something (look gif down), because the camera still scans the full area, not just, for example, the rectangle.
This is not convenient at all to use.

This is how I have implemented it until now:

ThANKS for your time,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.