You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

react-native-scanner-listener

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-scanner-listener

QR Code or Bar code Scanner device input receiver component library for react native.

1.0.3
latest
67

Supply Chain Security

100

Vulnerability

80

Quality

76

Maintenance

100

License

Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created

react-native-scanner-listener

QR Code or Bar code Scanner device input receiver component library for react native.

NPM JavaScript Style Guide

Install

npm install react-native-scanner-listener  --save

Usage

** package.json **

  "react-native-scanner-listener": "^1.0.0",

** Your Component file **

import ScannerInputListener from "react-native-scanner-listener";

const RunnerScreen = props => {
  // * Handle QR code scanning order done function.
  const handleScanComplete = qrCodeString => {
    if (qrCodeString) {
      // Do Your Stuff
    }
  };

  return (
    <ScannerInputListener OnComplete={handleScanComplete}>
      <YourRestOfCode />
    </ScannerInputListener>
  );
};
PropDescriptionDefault ValueExample
OnCompleteCallback function hits after device complete the scan.OnComplete={qtString => console.log(qtString)}

CHEERS. YOU ARE GOOD TO GO...

License

MIT © v4irajvimu

FAQs

Package last updated on 16 Jan 2020

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