0.2.0 • Published 12 months ago

react-native-cipherlab-module v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-native-cipherlab-module

Sdk to control cipherlab scaner

Installation

npm install react-native-cipherlab-module

Usage

import { getConstants, softScanTrigger } from 'react-native-cipherlab-module';

// ...

softScanTrigger();

// ...

const { Intent_SOFTTRIGGER_DATA, Intent_PASS_TO_APP } = getConstants();

function onScan(code: string) {
  console.log('QR code: ', code);
}

const eventEmitter = new NativeEventEmitter();
eventEmitter.addListener(Intent_SOFTTRIGGER_DATA, onScan);
eventEmitter.addListener(Intent_PASS_TO_APP, onScan);

License

MIT


Made with create-react-native-library

0.2.0

12 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago