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:
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
In v3 the
barCodeTypesare 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:
but it does not work on iOs, I need to pass:
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