# @types/react-native-bluetooth-serial

> TypeScript definitions for react-native-bluetooth-serial

Latest version **1.0.5** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-bluetooth-serial
pnpm add @types/react-native-bluetooth-serial
yarn add @types/react-native-bluetooth-serial
bun add @types/react-native-bluetooth-serial
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-12-21 |
| First published | 2018-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-bluetooth-serial
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-bluetooth-serial
- npm.io page: https://npm.io/package/@types/react-native-bluetooth-serial

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 1.0.5 (latest) — 2023-12-21
- 1.0.4 (ts4.5) — 2023-11-07
- 1.0.1 (ts2.8) — 2018-08-06
- 1.0.0 (ts2.6) — 2018-04-11
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-native-bluetooth-serial`

# Summary
This package contains type definitions for react-native-bluetooth-serial (https://github.com/rusel1989/react-native-bluetooth-serial).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-bluetooth-serial.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-bluetooth-serial/index.d.ts)
````ts
import * as React from "react";
import * as ReactNative from "react-native";

export type Buffer = (data: number[]) => void;

export namespace BluetoothSerial {
    function on(eventName: string, handler: () => void): void;
    function removeListener(eventName: string, handler: () => void): void;
    function write(data: Buffer | string): Promise<boolean>;
    function list(): Promise<Array<{ id: string; name: string }>>;
    function isEnabled(): Promise<boolean>;
    function connect(id: string): Promise<void>;
    function disconnect(): Promise<void>;
    function isConnected(): Promise<boolean>;
}

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [Rodrigo Weber](https://github.com/RodrigoAWeber).

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