React x TypeScript example.
Copy from Qugga2.
- Quagga2
- quagga2-react-example
and look at each source(writed reference url inside my code).
% npm i
% HTTPS=true npm start
You'll get something like following:
Compiled successfully!
You can now view react-app in the browser.
Local: https://localhost:3000/
On Your Network: https://192.168.0.24:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
For SmartPhone: Open IP address on your Mac(ex: https://192.168.0.24:3000/).
For Mac: Open local IP address on your Mac(ex: https://localhost:3000/).
- Readable for black text barcode.
- iPhone camera allows for only https.
- Scanner.tsx doesn't work for now.