# react-native-blueprint-label

> TODO

Latest version **1.0.1** (published 2021-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-blueprint-label
pnpm add react-native-blueprint-label
yarn add react-native-blueprint-label
bun add react-native-blueprint-label
```

## 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 | 1.0.1 |
| Published | 2021-12-07 |
| First published | 2021-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 299.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gilang Aditya Rahman |
| Maintainers | archi3monde |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-blueprint-label
- Repository: https://github.com/archimondee/react-native-blueprint-label
- Homepage: https://github.com/archimondee/react-native-blueprint-label#readme
- Issues: https://github.com/archimondee/react-native-blueprint-label/issues
- npm.io page: https://npm.io/package/react-native-blueprint-label

## Recent versions

- 1.0.1 (latest) — 2021-12-07
- 1.0.0 — 2021-12-06

## README

# react-native-blueprint-label

## Getting started
Add this in your package.json
`"react-native-blueprint-label": "github:archimondee/react-native-blueprint-label"`

## Usage
```javascript
import ReactNativeBlueprintLabel from 'react-native-blueprint-label';

// TODO: What to do with the module?
ReactNativeBlueprintLabel;
```

### Manual Linking 
1. Add this in src/build.gradle file
```
implementation project(':react-native-blueprint-label')
```

2. Add this in settings.gradle file
```
include ':react-native-blueprint-label'
project(':react-native-blueprint-label').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-blueprint-label/android')
```

3. Add this in MainApplication.java file
```
import com.blueprinter.ReactNativeBlueprintLabelPackage; -> On top
new ReactNativeBlueprintLabelPackage() -> On Get packages
```

### Usage 

```javascript
import ReactNativeBlueprintLabel from 'react-native-blueprint-label';
//Init printer module
ReactNativeBlueprintLabel.init();

//Get the devices
ReactNativeBlueprintLabel.getDevices()
//It will return [{'Address=BTName'}]

//Connect the devices
ReactNativeBlueprintLabel.connectDevice(btAddress);

//If you want open blackmark sensor in blue printer
ReactNativeBlueprintLabel.openBlackMark()

//If you want close blackmark sensor in blue printer
ReactNativeBlueprintLabel.closeBlackMark()

//Print Text
ReactNativeBlueprintLabel.printText('Your Text')

//Print Paragraph
const data = [
    'Queue: -               (1/1)',
    'Customer: -                 ',
    '----------------------------',
    'Bombay, ABahan1             ',
    '   1                        ',
    '   2                        ',
    '   3                        ',
    '   4                        ',
    '   5                        ',
  ]
ReactNativeBlueprintLabel.printParagraph(data)
```

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