Skip to content

theleanship/react-native-datalogic-module

 
 

Repository files navigation

react-native-datalogic-module

Library that exposes the Datalogic Android (Kotlin) SDK as a React Native Module.

Installation

yarn add @datalogic/react-native-datalogic-module
                    OR
npm i @datalogic/react-native-datalogic-module

Documentation

Documentation is available here.

Usage

import { BarcodeManager } from "@datalogic/react-native-datalogic-module";
import { NativeEventEmitter, Alert } from 'react-native';
// ...
React.useEffect(() => {
    try {
      const eventEmitter = new NativeEventEmitter(BarcodeManager);
      eventEmitter.addListener('successCallback', (map) => {
        Alert.alert('Barcode Result', map.barcodeData + '\n' + map.barcodeType);
      });
      BarcodeManager.addReadListener();
    } catch(e) {
      console.error(e);
    }
  }, []);

About

React Native Datalogic Module for Datalogic Android devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 41.6%
  • JavaScript 20.4%
  • Java 11.7%
  • C++ 10.8%
  • Objective-C++ 5.6%
  • Objective-C 3.7%
  • Other 6.2%