diff --git a/types/index.d.ts b/types/index.d.ts index 9a7884c..18e8c39 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -54,7 +54,10 @@ export interface RNCameraProps { // -- BARCODE PROPS barCodeTypes?: Array; - onBarCodeRead?(data: string, type: keyof BarCodeType): void; + onBarCodeRead?(event: { + data: string + type: keyof BarCodeType + }): void; // -- FACE DETECTION PROPS