From a9947b47d569227ed6b83ef2988a8cbd3e6b7b41 Mon Sep 17 00:00:00 2001 From: Felipe Constantino Date: Mon, 5 Mar 2018 14:15:47 -0300 Subject: [PATCH] fix(types): fix onBarCodeRead type --- types/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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