react-native-esb24-honeywell-scanner
v1.0.4
Published
Module for honeywell scanner with enabled EAN13 digit check transmit property
Downloads
5
Readme
react-native-esb24-honeywell-scanner
This module is fork of react-native-honeywell-scanner with enabled EAN13 digit check transmit property.
Getting started
$ npm install react-native-esb24-honeywell-scanner --save
Usage
import Esb24HoneywellScanner from 'react-native-esb24-honeywell-scanner';
...
useEffect(() => {
if( Esb24HoneywellScanner.isCompatible ) {
Esb24HoneywellScanner.startReader().then((claimed) => {
console.log(claimed ? 'Barcode reader is claimed' : 'Barcode reader is busy');
Esb24HoneywellScanner.onBarcodeReadSuccess(event => {
console.log('Received data', event.data);
});
});
return(
() => {
Esb24HoneywellScanner.stopReader().then(() => {
console.log("Freedom!!");
Esb24HoneywellScanner.offBarcodeReadSuccess();
});
}
)
}
}, []);