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

1.1.2 • Public • Published

rn-honeywell-scanner

This module is fork of react-native-honeywell-scanner-v2 with a fallback fix for IOS and just experimenting with my first react native package upload

Getting started

$ npm install rn-honeywell-scanner --save

Usage

import HoneywellScanner from 'rn-honeywell-scanner';

...

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();
                    });
                }
            )
        }
    }, []);

Readme

Keywords

Package Sidebar

Install

npm i rn-honeywell-scanner

Weekly Downloads

6

Version

1.1.2

License

MIT

Unpacked Size

124 kB

Total Files

16

Last publish

Collaborators

  • imdad482