react-native-scanner-zebra-v2

React Native module for Zebra barcode scanners

Showing:

Popularity

Downloads/wk

8

GitHub Stars

6

Maintenance

Last Commit

9mos ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.7KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

react-native-scanner-zebra

*Note: This package is still under beta version**

Getting started

$ npm install react-native-scanner-zebra --save

Mostly automatic installation

$ react-native link react-native-scanner-zebra

Additions steps for IOS Application

  • Configure the Xcode project to support one or more external accessory communication protocols through the UISupportedExternalAccessoryProtocols key in your application Info.plist file or via the Info tab of your project settings.

    Communication ProtocolZebra Scanner
    com.motorolasolutions.CS4070_ssiCS4070
    com.zebra.scanner.SSIRFD8500
    com.motorolasolutions.scannerRFD8500

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';

// Called when barcode is scanned
const onScan = useCallback((barcode, scannerId) => {
    // Handle the barcode
}, []);

// Called when scanner event occurred
const onEvent = useCallback((event, scannerId) => {
    // Handle the event
}, []);

const { setEnabled, getActiveScanners } = useZebraScanner(onScan, onEvent);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100