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:
commit
d786581d08
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue