Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-scanner-zebra-enhanced

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-scanner-zebra-enhanced

React Native module for Zebra barcode scanners

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
107
increased by62.12%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc