# react-native-honeywell-barcode-scanner

> ## Installation

Latest version **2.0.1** (published 2020-05-17) · 0 weekly downloads

## Install

```sh
npm install react-native-honeywell-barcode-scanner
pnpm add react-native-honeywell-barcode-scanner
yarn add react-native-honeywell-barcode-scanner
bun add react-native-honeywell-barcode-scanner
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-05-17 |
| First published | 2020-05-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 919.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | IBS Group |
| Maintainers | ibsgroup |
| Keywords | react-native, honeywell, barcode reader, barcode |

## Links

- npm: https://www.npmjs.com/package/react-native-honeywell-barcode-scanner
- npm.io page: https://npm.io/package/react-native-honeywell-barcode-scanner

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2020-05-17

## README

# react-native-honeywell-barcode-scanner

## Installation

`$ npm install react-native-honeywell-barcode-scanner --save`


#### Android (iOS not supported)

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNHoneywellBarcodeScannerPackage;` to the imports at the top of the file
  - Add `new RNHoneywellBarcodeScannerPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
      ```
      include ":react-native-honeywell-barcode-scanner"
      project( ":react-native-honeywell-barcode-scanner" ).projectDir = new File( rootProject.projectDir, "../node_modules/react-native-honeywell-barcode-scanner/android" )
      ```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
     ```
      implementation project( ":react-native-honeywell-barcode-scanner" )
     ```

### More configuration:

1. Append the following line to `android/settings.gradle`:

   ```
   include ":DataCollection"
   ```

2.  Cut `DataCollection` folder and paste in in `android`

3. Open up `AndroidManifest.xml` and set `tools:node` value to `replace`:

   ```xml
   <manifest xmlns:tools="http://schemas.android.com/tools"
       <application tools:node="replace" ... >
           ...
       </application>
       ...
   </manifest>
   ```

## Usage

   ```javascript
import {
    StartReader,
    StopReader,
    OnBarcodeScan,
    DestroyListener,
    SetAutomaticMode,
    SetManualMode
} from "react-native-honeywell-barcode-scanner";

/* Starts the barcode reader. */
StartReader();

/* Stops the barcode reader. */
StopReader();

/* Listens to the barcode sensor reader event. */
OnBarcodeScan( callback );

/* Removes the barcode sensor listener. */
DestroyListener();

/* Sets the barcode reader's mode to manual. */
SetManualMode();

/* Sets the barcode reader's mode to automatic. */
SetAutomaticMode();
   ```

###

---
_Source: https://npm.io/package/react-native-honeywell-barcode-scanner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
