Package Exports
- @jeremiahblanch/react-scanner
- @jeremiahblanch/react-scanner/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jeremiahblanch/react-scanner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React QR Scanner
Forked from @alzera/react-scanner. [https://github.com/alzera/react-scanner.git]
Differences within this fork:
- Prettier camera (device) chooser. Only shows when there are multiple devices. Use the HTML
<select>element which displays nicely on phones. Probably doesn't look great on desktop but most desktops do not have multiple cameras. - When the user chooses their camera (device), the choice is stored in localStorage and retrieved the next time. This makes better UX for using the tool over and over again.
- Removes the components
DropZone(for uploading an image instead of using the camera) andBarcodeScanner(a wrapper forScannerthat uses theDropZone). Now you can just useScanner.