mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
Merge pull request #1318 from react-native-community/fix/barcode-scan
Fix onBarCodeRead definitions
This commit is contained in:
commit
a1d401a892
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@ -54,7 +54,10 @@ export interface RNCameraProps {
|
||||
|
||||
// -- BARCODE PROPS
|
||||
barCodeTypes?: Array<keyof BarCodeType>;
|
||||
onBarCodeRead?(data: string, type: keyof BarCodeType): void;
|
||||
onBarCodeRead?(event: {
|
||||
data: string
|
||||
type: keyof BarCodeType
|
||||
}): void;
|
||||
|
||||
// -- FACE DETECTION PROPS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user