@felipesimmi/react-native-datalogic-module
v1.0.13-beta
Published
Library that exposes the Datalogic Android (Java) SDK as a React Native Module.
Downloads
22
Readme
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