1.0.7 • Published 5 years ago

@apl-common/react-native-kaicom-scanner v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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()
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago