react-native-camera-v4
react-native-camera-v4 copied to clipboard
barCodeTypes not working on iOs
In v3 the barCodeTypes
are not correctly typed, it is not supporting the detected types on iOs.
For example, if I would like to restrict the valid codes to only QR, the TS typings say to pass:
barCodeTypes: ['qr']
but it does not work on iOs, I need to pass:
barCodeTypes: ['org.iso.QRCode']
I do not know if makes sense to fix this on v3 or just see this looking forward.
Docs: https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject/machine-readable_object_types