VisionBarcodeEmail
interface
An email message from a 'MAILTO:' or similar QRCode type, or from a ContactInfo/VCARD.
Example
import vision, { VisionBarcodeValueType } from '@react-native-firebase/ml-vision';
const [barcode, ...otherBarcodes] = await vision().barcodeDetectorProcessImage(filePath);
if (barcode && barcode.valueType === VisionBarcodeValueType.EMAIL) {
console.log(barcode.email);
} else if (barcode && barcode.valueType === VisionBarcodeValueType.CONTACT_INFO) {
console.log(barcode.contactInfo.emails[0]);
}