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 initInstall the library with composer
npm i react-simple-qr-code-scannerDemo
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