@felipesimmi/react-native-datalogic-module
TypeScript icon, indicating that this package has built-in type declarations

1.0.13-beta • Public • Published

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";
// ...
const result = await BarcodeManager.pressTrigger();

Developer Instructions

Basic to-do's when updating and pushing to gitlab.

First Time Instructions

Follow the React Native CLI Quickstart instructions to install necessary software. Run 'yarn install' from the main project directory

Editting the Module

  • The kotlin files are located in android/src/main/java/com/reactnativedatalogicmodule
  • If you wish to add a new class, make a new file in the same location and add it to the DatalogicModulePackage.kt
  • Here is the React Native documentation on native modules that are used.

Release Preparation

  • Run 'yarn test android' in the command line from the main project All tests should pass except the AutoScanTrigger (only some Datalogic devices have the functionality)

  • Install and use the np tool:

    npm install --global np
    np

Package Sidebar

Install

npm i @felipesimmi/react-native-datalogic-module

Weekly Downloads

0

Version

1.0.13-beta

License

MIT

Unpacked Size

370 kB

Total Files

136

Last publish

Collaborators

  • felipe.simmi