@jeremiahblanch/react-scanner
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

React QR Scanner

Forked from @alzera/react-scanner. [https://github.com/alzera/react-scanner.git]

Differences within this fork:

  1. 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.
  2. 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.
  3. Removes the components DropZone (for uploading an image instead of using the camera) and BarcodeScanner (a wrapper for Scanner that uses the DropZone). Now you can just use Scanner.

Package Sidebar

Install

npm i @jeremiahblanch/react-scanner

Weekly Downloads

24

Version

1.1.7

License

MIT

Unpacked Size

171 kB

Total Files

23

Last publish

Collaborators

  • jeremiahblanch