Merge pull request #1318 from react-native-community/fix/barcode-scan

Fix onBarCodeRead definitions
This commit is contained in:
Felipe Cavalcante Constantino 2018-03-05 14:29:39 -03:00 committed by GitHub
commit a1d401a892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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