react-native-infrared-develon
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

react-native-infrared-develon

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

Getting started

$ npm install react-native-infrared-develon --save

Usage

import DevelonInfrared from 'react-native-infrared-develon';

...

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

            });


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

Readme

Keywords

Package Sidebar

Install

npm i react-native-infrared-develon

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

124 kB

Total Files

23

Last publish

Collaborators

  • develonmobile