Skip to content

Commit bfe6d86

Browse files
committed
chore(barcode): edit example code in README
1 parent ecd1c74 commit bfe6d86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

barcode-scanning/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ On iOS, use CocoaPods to add the native RNMLKitBarcodeScanning to your project:
2727
```javascript
2828
import BarcodeScanning from '@react-native-ml-kit/barcode-scanning';
2929

30-
const labels = await BarcodeScanning.scan(imageURL);
30+
const barcodes = await BarcodeScanning.scan(imageURL);
31+
for (let barcode of barcodes) {
32+
console.log(barcode.value, barcode.format);
33+
}
3134
```

0 commit comments

Comments
 (0)