diff --git a/types/index.d.ts b/types/index.d.ts index ed7507b..6e1edfc 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -59,7 +59,11 @@ export interface RNCameraProps { onBarCodeRead?(event: { data: string, type: keyof BarCodeType, - bounds:[{x:string,y:string}]|{origin:{x:string,y:string},size:{height:string,width:string}} + /** + * @description For Android use `[Point, Point]` + * @description For iOS use `{ origin: Point, size: Size }` + */ + bounds: [Point, Point] | { origin: Point, size: Size } }): void; // -- FACE DETECTION PROPS @@ -87,14 +91,14 @@ export interface RNCameraProps { } -interface Point { - x: number, - y: number +interface Point { + x: T, + y: T } -interface Size { - width: number; - height: number; +interface Size { + width: T; + height: T; } interface Face {