I'm currently utilizing react-native-camera for QR scanning, which is functioning properly. However, I want to implement a white screen with opacity above the camera, with a blank square in the middle to indicate where the user should scan the QR code. The challenge arises when trying to position the white screen layout and the blank square so that they are both visible - placing one on top of the other results in visibility issues due to opacity levels.
Is there a way to create a screen with a colored overlay but a cutout in the center?
To give you a clear idea of what I'm aiming for:
https://i.stack.imgur.com/rbwKY.jpg
The area inside the border needs to have 0 opacity.