react-native-scanner-zebra-enhanced
*Note: This package is still under beta version**
Getting started
$ npm install react-native-scanner-zebra-enhanced --save
Mostly automatic installation
$ react-native link react-native-scanner-zebra-enhanced
Additions steps for IOS Application
Methods:
- setEnabled(isEnabled): Enable or disable active scanners
- getActiveScanners(callback): Returns the list of active scanners in callback function
Usage
import useZebraScanner from 'react-native-scanner-zebra-enhanced'
const onScan = useCallback((barcode, scannerId) => {
}, [])
const onEvent = useCallback((event, scannerId) => {
}, [])
const { setEnabled, getActiveScanners } = useZebraScanner(onScan, onEvent)