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

react-native-idata-scanner

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-idata-scanner

React native implementation of Android handheld PDA terminal based on iData 95w series

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-idata-scanner

基于 iData 95w 系列 安卓手持 PDA 终端设备的 React Native 实现

iData 95w Series

Getting started

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

Mostly automatic installation

$ react-native link react-native-idata-scanner

Usage

import IdataScanner from 'react-native-idata-scanner';
import {NativeEventEmitter} from 'react-native';

...

// 设置扫码选项(当PDA设备能通过广播进行设置的时候可用)
const rows = [{key: 'barcode_send_mode', value: 'BROADCAST'}];
IdataScanner.setBroadcastSetting('com.android.scanner.service_settings', rows);

// 广播和接收字段(接收的广播名和接收的字段名)
IdataScanner.getCode('android.intent.action.SCANRESULT', 'value');

const eventEmitter = new NativeEventEmitter();
const listener = eventEmitter.addListener('scannerCodeShow', ({code}) => {
    console.log(`->code:${code}`)
});

Keywords

FAQs

Package last updated on 28 Sep 2021

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