diff --git a/src/BarcodeScannerComponent.tsx b/src/BarcodeScannerComponent.tsx index 609ad6c..64b97be 100644 --- a/src/BarcodeScannerComponent.tsx +++ b/src/BarcodeScannerComponent.tsx @@ -7,8 +7,8 @@ const BarcodeScannerComponent = ({ height, onUpdate }: { - width: number; - height: number; + width: number | string; + height: number | string; onUpdate: (arg0: unknown, arg1?: Result) => void; }): React.ReactElement => { const webcamRef = React.useRef(null) @@ -30,7 +30,7 @@ const BarcodeScannerComponent = ({ React.useEffect(() => { setInterval(capture, 100) - }, []); + }, []) return (