rn-honeywell-scanner-vvns
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

react-native-honeywell-scanner-v2

This module is fork of react-native-honeywell-scanner.

Getting started

$ npm install react-native-honeywell-scanner-v2 --save

Usage

import HoneywellScanner from 'react-native-honeywell-scanner-v2';

...

useEffect(() => {
        if( HoneywellScanner.isCompatible ) {
            HoneywellScanner.startReader().then((claimed) => {
                console.log(claimed ? 'Barcode reader is claimed' : 'Barcode reader is busy');
                HoneywellScanner.onBarcodeReadSuccess(event => {
                    console.log('Received data', event.data);
                });

            });


            return(
                () => {
                    HoneywellScanner.stopReader().then(() => {
                        console.log("Freedom!!");
                        HoneywellScanner.offBarcodeReadSuccess();
                    });
                }
            )
        }
    }, []);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.7
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.7
    2
  • 1.1.6
    0

Package Sidebar

Install

npm i rn-honeywell-scanner-vvns

Weekly Downloads

2

Version

1.1.7

License

MIT

Unpacked Size

123 kB

Total Files

14

Last publish

Collaborators

  • onurure