Fix barcode type ‘code128’ typo (#563)

This commit is contained in:
Derek Hsu 2017-01-23 15:20:39 +08:00 committed by Zack Story
parent 860d3bfe19
commit c12fd726a3
3 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ Event contains `data` (the data in the barcode) and `bounds` (the rectangle whic
The following barcode types can be recognised:
- `aztec`
- `code138`
- `code128`
- `code39`
- `code39mod43`
- `code93`

View File

@ -187,9 +187,9 @@ class RCTCameraViewFinder extends TextureView implements TextureView.SurfaceText
/**
* Parse barcodes as BarcodeFormat constants.
*
* Supports all iOS codes except [code138, code39mod43, itf14]
* Supports all iOS codes except [code39mod43, itf14]
*
* Additionally supports [codabar, code128, maxicode, rss14, rssexpanded, upca, upceanextension]
* Additionally supports [codabar, maxicode, rss14, rssexpanded, upca, upceanextension]
*/
private BarcodeFormat parseBarCodeString(String c) {
if ("aztec".equals(c)) {

View File

@ -57,7 +57,7 @@ RCT_EXPORT_MODULE();
@"ean13": AVMetadataObjectTypeEAN13Code,
@"ean8": AVMetadataObjectTypeEAN8Code,
@"code93": AVMetadataObjectTypeCode93Code,
@"code138": AVMetadataObjectTypeCode128Code,
@"code128": AVMetadataObjectTypeCode128Code,
@"pdf417": AVMetadataObjectTypePDF417Code,
@"qr": AVMetadataObjectTypeQRCode,
@"aztec": AVMetadataObjectTypeAztecCode