fix(types): fix onBarCodeRead type

This commit is contained in:
Felipe Constantino 2018-03-05 14:15:47 -03:00
parent 1a57b8fc4b
commit a9947b47d5
1 changed files with 4 additions and 1 deletions

5
types/index.d.ts vendored
View File

@ -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