react-native-infrared-develon
v1.1.3
Published
Bridge to use the Honeywell scanner
Downloads
3
Readme
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();
});
}
)
}
}, []);