milocal-pda-barcode-scanner
v0.0.4
Published
Use to listen barcode scanner events from native android (Broadcast service)
Downloads
1
Readme
milocal-pda-barcode-scanner
Use to listen barcode scanner events from native android (Broadcast service)
Install
npm install milocal-pda-barcode-scanner
npx cap sync
API
// in your imports add this
import { BarcodeScanner as MiLocalBarcodeScanner } from "milocal-pda-barcode-scanner";
// inside your functional component add this
useEffect(() => {
MiLocalBarcodeScanner.addListener('onScan', (data: any) => {
console.log(data);
});
}, []);