Closed nhudinh2103 closed 6 years ago
This scanning view doesn't take any child views which is evident from: https://github.com/ekreutz/react-native-barcode-scanner-google/blob/master/index.js (notice how no child views are passed down)
Instead, align your overlay as a sibling after BarcodeScanner
in your view hierarchy.
How to add a mask on top of barcode scanner?
I have followed this link: React native camera with a transparent view for barcode scanner mask.
With react-native-camera, it worked similar to the link.
But when I tried with your library, it throws an exception like this:
Here's my code:
Can somebody help me? Thanks