From b498f77dd8da278c8edbd81959d91c226e0e1199 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Sat, 13 Feb 2016 00:59:21 -0500 Subject: [PATCH 1/2] add support for itf14 and interleaved2of5 bar codes --- ios/RCTCameraManager.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ios/RCTCameraManager.m b/ios/RCTCameraManager.m index e375329..0bf3014 100644 --- a/ios/RCTCameraManager.m +++ b/ios/RCTCameraManager.m @@ -50,6 +50,12 @@ RCT_EXPORT_VIEW_PROPERTY(torchMode, NSInteger); @"pdf417": AVMetadataObjectTypePDF417Code, @"qr": AVMetadataObjectTypeQRCode, @"aztec": AVMetadataObjectTypeAztecCode + #ifdef AVMetadataObjectTypeInterleaved2of5Code + ,@"interleaved2of5": AVMetadataObjectTypeInterleaved2of5Code + # endif + #ifdef AVMetadataObjectTypeITF14Code + ,@"itf14": AVMetadataObjectTypeITF14Code + # endif #ifdef AVMetadataObjectTypeDataMatrixCode ,@"datamatrix": AVMetadataObjectTypeDataMatrixCode # endif @@ -100,6 +106,12 @@ RCT_EXPORT_VIEW_PROPERTY(torchMode, NSInteger); AVMetadataObjectTypePDF417Code, AVMetadataObjectTypeQRCode, AVMetadataObjectTypeAztecCode + #ifdef AVMetadataObjectTypeInterleaved2of5Code + ,AVMetadataObjectTypeInterleaved2of5Code + # endif + #ifdef AVMetadataObjectTypeITF14Code + ,AVMetadataObjectTypeITF14Code + # endif #ifdef AVMetadataObjectTypeDataMatrixCode ,AVMetadataObjectTypeDataMatrixCode # endif From 9e83ddbc5986f772e1ab71e65c0bcd7ee7253f19 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Sat, 13 Feb 2016 00:59:29 -0500 Subject: [PATCH 2/2] update docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index dd1e869..6a8c3c9 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.