feat(docs): update onBarCodeRead on Android and add additional SubView library (#2616)
This commit is contained in:
parent
72c5624dd3
commit
fe8481158f
@ -417,18 +417,24 @@ Event contains the following fields
|
||||
}
|
||||
}
|
||||
|
||||
- onAndroid:
|
||||
- onAndroid: the `ResultPoint[]` (`bounds.origin`) is returned for scanned barcode origins. The number of `ResultPoint` returned depends on the type of Barcode.
|
||||
|
||||
bounds:[{x:string,y:string}]
|
||||
- on Android it just returns resultPoints:
|
||||
- for barcodes:
|
||||
bounds: {
|
||||
width: number;
|
||||
height: number;
|
||||
origin: Array<{x: number, y: number}>
|
||||
}
|
||||
|
||||
bounds[0].x : left side of barcode.
|
||||
bounds[1].x : right side of barcode
|
||||
- counting for QRcodes:
|
||||
1. **PDF417**: 8 ResultPoint, laid out as follow:
|
||||
0 --- 4 ------ 6 --- 2
|
||||
| ////////////////// |
|
||||
1 --- 5 ------ 7 --- 3
|
||||
|
||||
1 2
|
||||
0
|
||||
2. **QR**: 4 ResultPoint, laid out as follow:
|
||||
2 ------ 3
|
||||
| //////
|
||||
| //////
|
||||
1 ------ 0
|
||||
|
||||
The following barcode types can be recognised:
|
||||
|
||||
@ -686,6 +692,14 @@ A Barcode and QR code UI mask which can be use to render a scanning layout on ca
|
||||
|
||||
Read more about [react-native-barcode-mask](https://github.com/shahnawaz/react-native-barcode-mask) here.
|
||||
|
||||
### @nartc/react-native-barcode-mask
|
||||
|
||||
A rewritten version of `react-native-barcode-mask` using `Hooks` and `Reanimated`. If you're already using `react-native-reanimated` (`react-navigation` dependency) then you might benefit from this rewritten component.
|
||||
- Customizable
|
||||
- Provide custom hook to "scan barcode within finder area"
|
||||
|
||||
Read more about it here [@nartc/react-native-barcode-mask](https://github.com/nartc/react-native-barcode-mask)
|
||||
|
||||
## Testing
|
||||
|
||||
To learn about how to test components which uses `RNCamera` check its [documentation about testing](./tests.md).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user