1.0.2 • Published 9 months ago

rn-honeywell-barcode-scanner v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

rn-honeywell-barcode-scanner

This module is fork of react-native-honeywell-scanner-v2. There is only one reason for this fork,

To solve the following issue by updating the deprecated statements, and then pushing it to npm. All the work(s) belong(s) to the original repo(s) developer(s).

Best Regards, Onur

Getting started

$ npm install rn-honeywell-barcode-scanner --save

Usage

import HoneywellScanner from 'rn-honeywell-barcode-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();
                    });
                }
            )
        }
    }, []);
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago