Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
fix(types): fix onBarCodeRead type
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Constantino committed Mar 5, 2018
1 parent 1a57b8f commit a9947b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a9947b4

Please sign in to comment.