JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56
  • Score
    100M100P100Q70743F
  • License MIT

A super simple qr code scanner

Package Exports

  • react-simple-qr-code-scanner
  • react-simple-qr-code-scanner/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 (react-simple-qr-code-scanner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

A simple qr-code scanner for react

This is a simple qr-code scanner component for react

Installing

A step by step series guide to setup this component.

Start a node project

npm init

Install the library with composer

npm i react-simple-qr-code-scanner

Demo

import { QrCodeScanner } from "react-simple-qr-code-scanner";
function App() {
  return (
    <QrCodeScanner
      onResult={(result) => {
        console.log(result);
      }}
      Errors={(error) => {
        //console.log(error);
      }},
      facingMode={"enviroment"} //or user
    />
  );
}

License

This project is licensed under the MIT License - see the LICENSE file for details