diff --git a/README.md b/README.md index 3b1659a..09573d5 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,8 @@ The following barcode types can be recognised: - `pdf417` - `qr` - `upce` +- `interleaved2of5` (when available) +- `itf14` (when available) - `datamatrix` (when available) The barcode type is provided in the `data` object. diff --git a/ios/RCTCameraManager.m b/ios/RCTCameraManager.m index fd9136d..3262025 100644 --- a/ios/RCTCameraManager.m +++ b/ios/RCTCameraManager.m @@ -51,6 +51,12 @@ RCT_EXPORT_VIEW_PROPERTY(keepAwake, BOOL); @"pdf417": AVMetadataObjectTypePDF417Code, @"qr": AVMetadataObjectTypeQRCode, @"aztec": AVMetadataObjectTypeAztecCode + #ifdef AVMetadataObjectTypeInterleaved2of5Code + ,@"interleaved2of5": AVMetadataObjectTypeInterleaved2of5Code + # endif + #ifdef AVMetadataObjectTypeITF14Code + ,@"itf14": AVMetadataObjectTypeITF14Code + # endif #ifdef AVMetadataObjectTypeDataMatrixCode ,@"datamatrix": AVMetadataObjectTypeDataMatrixCode # endif @@ -101,6 +107,12 @@ RCT_EXPORT_VIEW_PROPERTY(keepAwake, BOOL); AVMetadataObjectTypePDF417Code, AVMetadataObjectTypeQRCode, AVMetadataObjectTypeAztecCode + #ifdef AVMetadataObjectTypeInterleaved2of5Code + ,AVMetadataObjectTypeInterleaved2of5Code + # endif + #ifdef AVMetadataObjectTypeITF14Code + ,AVMetadataObjectTypeITF14Code + # endif #ifdef AVMetadataObjectTypeDataMatrixCode ,AVMetadataObjectTypeDataMatrixCode # endif