react-native-cipherlab-module
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-cipherlab-module

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

314 kB

Total Files

18

Last publish

Collaborators

  • hungtn-amisoft