I have implemented expo camera and for android and IOS is working fine but for web scans only qr code
<View style={styles.cameraContainer}>
<Camera style={[styles.camera, styles.centeredView]} flashMode={flash} type={type} autoFocus={Camera.Constants.AutoFocus.auto}
onBarCodeScanned={scanned ? undefined : handleBarCodeScanned}
barCodeScannerSettings={{
barCodeTypes: [BarCodeScanner.Constants.BarCodeType.ean13, BarCodeScanner.Constants.BarCodeType.upc_e, BarCodeScanner.Constants.BarCodeType.qr]
}}
>
</Camera>
</View>
It’s due beacouse in node_modules/expo-camera/src/useWebQRScanner.ts there is this
if (parsed?.data) {
const nativeEvent: BarCodeScanningResult = {
type: 'qr',
data: parsed.data,
};
if (parsed.location) {
nativeEvent.cornerPoints = [
parsed.location.topLeftCorner,
parsed.location.bottomLeftCorner,
parsed.location.topRightCorner,
parsed.location.bottomRightCorner,
];
}
return nativeEvent;
}