Giter Site home page Giter Site logo

datalogic / react-native-datalogic-module Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 6.0 1018 KB

React Native Datalogic Module for Datalogic Android devices

Kotlin 41.25% JavaScript 20.21% Objective-C 3.66% Ruby 2.97% TypeScript 0.57% Shell 0.23% Starlark 0.92% Java 11.57% Makefile 2.34% C++ 10.68% Objective-C++ 5.59%

react-native-datalogic-module's Introduction

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);
    }
  }, []);

react-native-datalogic-module's People

Contributors

sethjray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-datalogic-module's Issues

Work with HandScanner

Hello, does this module provide functionality for the wearable HandScanner?
In the Documentation I only see a separate android sdk for this device.

Wont receive events on Release Build

Hello,

i got the module working perfectly in my app with debug build. But after I make a release build the scan events aren't registered.
The scanner acts normal, but nothing happens in the app.
Is there some manifest setting to enable broadcast events. Testing on Skorpio X5 with Android 10

module not working on RN 0.70

hi,
we have tested positively last June the config :
dependencies": { "@datalogic/react-native-datalogic-module": "^2.0.2", "react": "17.0.2", "react-native": "0.68.2"

but
now the following config gives an error at build :
dependencies": { "@datalogic/react-native-datalogic-module": "^2.0.2 or 3", "react": "18.1.0", "react-native": "0.70.5"
error message at yarn run android :
`FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:processDebugResources'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find com.github.datalogic:datalogic-android-sdk:1.29.
Searched in the following locations:
- file:/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/prodRnScCsv/node_modules/react-native/android/com/github/datalogic/datalogic-android-sdk/1.29/datalogic-android-sdk-1.29.pom
- file:/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/prodRnScCsv/node_modules/jsc-android/dist/com/github/datalogic/datalogic-android-sdk/1.29/datalogic-android-sdk-1.29.pom
- https://repo.maven.apache.org/maven2/com/github/datalogic/datalogic-android-sdk/1.29/datalogic-android-sdk-1.29.pom
- https://dl.google.com/dl/android/maven2/com/github/datalogic/datalogic-android-sdk/1.29/datalogic-android-sdk-1.29.pom
- file:/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/prodRnScCsv/node_modules/react-native-background-fetch/android/libs/com/github/datalogic/datalogic-android-sdk/1.29/datalogic-android-sdk-1.29.pom
Required by:
project :app > project :datalogic_react-native-datalogic-module
`
I remain at your disposal for further tests

How to disable beep sound

Hello,
I am working on datalogic SDK it working fine for me but I want to use my own sound for good or bad scan. Please suggest to me how to disable the default beep.

Why so many dependencies?

Hi,

I really like the library, works great and quick to implement.

However, packaging it is something completely different. Why does it have so many dependencies? Is there any chance some may actually be devdependencies? I end up with over 29.000 objects in 850 packages after adding the library.

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.