🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-native-scanner-listener

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

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
Source
npm
Version published
Weekly downloads
4
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

qrcode

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