React Qr Reader screenshot

React Qr Reader

Author Avatar Theme by Blackboxvision
Updated: 6 Aug 2021
58 Stars

React component for QR Scanning on web using Zxing library

Overview

The React QR Reader is a component designed for scanning QR codes from a web browser based app. It is compatible with major browsers like Chrome, Firefox, and Safari, and requires React version 16.8.0 or higher. This library offers an easy-to-use API and provides customizable features such as specifying camera type, handling scan events, and styling options.

Features

  • Scanning QR Codes: The component allows users to scan QR codes from a web browser.
  • Browser Compatibility: Tested in Chrome, Firefox, and Safari on both Mac OS and Android.
  • React Compatibility: Requires React version 16.8.0 or higher.
  • Camera Selection: Users can specify the camera to be used for scanning if multiple cameras are available.
  • Scan Event Handling: Supports custom event handlers for scan events.
  • Customizable ViewFinder: Option to provide a custom component for rendering over the video element.
  • Styling Options: Users can apply custom styles to the container, video container, and video elements.

Installation

To install the React QR Reader, you can use either NPM or Yarn. Here are the steps for each:

NPM

npm install react-qr-reader

Yarn

yarn add react-qr-reader

Summary

The React QR Reader is a versatile component that allows users to easily incorporate QR code scanning into their web browser based apps. With its compatibility across major browsers, customizable features, and simple installation process, developers can quickly add QR code scanning functionality to their projects.