Jump to top

VisionBarcodeSms

interface

An sms message from an 'SMS:' or similar QRCode type.

Example
import vision, { VisionBarcodeValueType } from '@react-native-firebase/ml-vision';

const [barcode, ...otherBarcodes] = await vision().barcodeDetectorProcessImage(filePath);

if (barcode && barcode.valueType === VisionBarcodeValueType.SMS) {
  console.log(barcode.sms);
}

Properties

message

</>

The message text for this SMS.

message: string | null;

phoneNumber

</>

The phone number for this SMS.

phoneNumber: string | number;