Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yudiel/react-qr-scanner

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yudiel/react-qr-scanner

A library to scan qr codes in react.

  • 2.0.0-beta.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
decreased by-40.56%
Maintainers
1
Weekly downloads
 
Created
Source

Features

  • Scan codes using a smartphone camera or webcam.

Demo

Checkout the Demo.

Install

yarn add @yudiel/react-qr-scanner

npm install @yudiel/react-qr-scanner

Usage

import { Scanner } from '@yudiel/react-qr-scanner';

const App = () => {
    return <Scanner onScan={(result) => console.log(result)} />
}
  • There is also a hook to get the available devices useDevices.

Supported Formats

1D Barcodes2D Barcodes
CodabarAztec
Code 39Data Matrix
Code 93Matrix Codes
Code 128Maxi Code
DatabarMicro QR Code
Databar ExpandedPDF 417
Dx Film EdgeQR Code
EAN 8rMQR Code
EAN 13
ITF
Linear Codes
UPC A
UPC E

Limitations

  • Due to browser implementations the camera can only be accessed over https or localhost.
  • Beep sound in iOS will only work after user interaction.
  • Server side rendering won't work so only require the component when rendering in a browser environment.

FAQs

Package last updated on 22 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc