fix(types): fix onBarCodeRead type
This commit is contained in:
parent
1a57b8fc4b
commit
a9947b47d5
|
@ -54,7 +54,10 @@ export interface RNCameraProps {
|
||||||
|
|
||||||
// -- BARCODE PROPS
|
// -- BARCODE PROPS
|
||||||
barCodeTypes?: Array<keyof BarCodeType>;
|
barCodeTypes?: Array<keyof BarCodeType>;
|
||||||
onBarCodeRead?(data: string, type: keyof BarCodeType): void;
|
onBarCodeRead?(event: {
|
||||||
|
data: string
|
||||||
|
type: keyof BarCodeType
|
||||||
|
}): void;
|
||||||
|
|
||||||
// -- FACE DETECTION PROPS
|
// -- FACE DETECTION PROPS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue