Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (15 loc) · 421 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 421 Bytes

React component that allows you to open a camera in your browser (desktop or mobile) and read QR codes.

Typical usage (TODO):

<QrCodeReader
  onData={(data) => setQrCodeReaderData(data)}
  onNotAllowedError={(error) => {
    // TODO: display "not allowed" UI
    setQrCodeReaderError(error);
  }}
  onUnknownError={(error) => {
    // TODO: display "unknown error" UI
    setQrCodeReaderError(error);
  }}
/>