react-native-camera-v4 icon indicating copy to clipboard operation
react-native-camera-v4 copied to clipboard

barCodeTypes not working on iOs

Open artola opened this issue 3 years ago • 1 comments

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

artola avatar Mar 01 '21 20:03 artola