Merge pull request #196 from brunobar79/more-barcode-types

Add support for ITF14 and interleaved 2 of 5 barcode types
This commit is contained in:
Loch Wansbrough 2016-02-13 15:44:50 -08:00
commit d786581d08
2 changed files with 14 additions and 0 deletions

View File

@ -171,6 +171,8 @@ The following barcode types can be recognised:
- `pdf417` - `pdf417`
- `qr` - `qr`
- `upce` - `upce`
- `interleaved2of5` (when available)
- `itf14` (when available)
- `datamatrix` (when available) - `datamatrix` (when available)
The barcode type is provided in the `data` object. The barcode type is provided in the `data` object.

View File

@ -51,6 +51,12 @@ RCT_EXPORT_VIEW_PROPERTY(keepAwake, BOOL);
@"pdf417": AVMetadataObjectTypePDF417Code, @"pdf417": AVMetadataObjectTypePDF417Code,
@"qr": AVMetadataObjectTypeQRCode, @"qr": AVMetadataObjectTypeQRCode,
@"aztec": AVMetadataObjectTypeAztecCode @"aztec": AVMetadataObjectTypeAztecCode
#ifdef AVMetadataObjectTypeInterleaved2of5Code
,@"interleaved2of5": AVMetadataObjectTypeInterleaved2of5Code
# endif
#ifdef AVMetadataObjectTypeITF14Code
,@"itf14": AVMetadataObjectTypeITF14Code
# endif
#ifdef AVMetadataObjectTypeDataMatrixCode #ifdef AVMetadataObjectTypeDataMatrixCode
,@"datamatrix": AVMetadataObjectTypeDataMatrixCode ,@"datamatrix": AVMetadataObjectTypeDataMatrixCode
# endif # endif
@ -101,6 +107,12 @@ RCT_EXPORT_VIEW_PROPERTY(keepAwake, BOOL);
AVMetadataObjectTypePDF417Code, AVMetadataObjectTypePDF417Code,
AVMetadataObjectTypeQRCode, AVMetadataObjectTypeQRCode,
AVMetadataObjectTypeAztecCode AVMetadataObjectTypeAztecCode
#ifdef AVMetadataObjectTypeInterleaved2of5Code
,AVMetadataObjectTypeInterleaved2of5Code
# endif
#ifdef AVMetadataObjectTypeITF14Code
,AVMetadataObjectTypeITF14Code
# endif
#ifdef AVMetadataObjectTypeDataMatrixCode #ifdef AVMetadataObjectTypeDataMatrixCode
,AVMetadataObjectTypeDataMatrixCode ,AVMetadataObjectTypeDataMatrixCode
# endif # endif