A lightweight barcode scanner base on Barcode Detection API
, and polyfill use zbar.wasm
import { BarcodeScanner } from 'react-barcode-scanner'
export default () => {
return <BarcodeScanner />
}
To support SSR, v2.0.0
not auto import polyfill anymore, user need import it manually.
import "react-barcode-scanner/polyfill"
MIT