Limit scanning area using expo camera/ expo barcode scanner

Please provide the following:

  1. 49
  2. Android and iOS
  3. expo-camera and expo-barcode-scanner

Hey there!
I am looking for a way to limit the scanning area of the expo camera for the usage of the barcode scanner.
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, because the camera still scans the full area, not just, the rectangle.

Please advice on how it is best to handle this :slight_smile:

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