@apl-common/react-native-kaicom-scanner
凯立PDA扫描的react native包,目前只实现了开始监听扫描,结束监听扫描的功能,其他的设置项暂时没有实现
Last updated 3 months ago by a1292999652 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @apl-common/react-native-kaicom-scanner 
SYNC missed versions from official npm registry.

react-native-kaicom-scanner

Getting started

$ npm i @apl-common/react-native-kaicom-scanner --save

Mostly automatic installation

$ react-native link @apl-common/react-native-kaicom-scanner

Usage

import KaicomScanner, {Result} from "react-native-kaicom-scanner";
import {DeviceEventEmitter} from "react-native";

// TODO: What to do with the module?

// Start
const EVENT_NAME:string = "Scanner";
KaicomScanner.startScan(EVENT_NAME);
let  scanListener= DeviceEventEmitter.addListener(EVENT_NAME, async (event:Result) => {/* your code */})

// Stop
KaicomScanner.stopScan();
scanListener.remove()

Current Tags

  • 1.0.7                                ...           latest (3 months ago)

7 Versions

  • 1.0.7                                ...           3 months ago
  • 1.0.6                                ...           3 months ago
  • 1.0.5                                ...           3 months ago
  • 1.0.4                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |