# lyric-access

> A package to integrate the access solution from Lyric.

Latest version **0.3.0** (published 2020-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install lyric-access
pnpm add lyric-access
yarn add lyric-access
bun add lyric-access
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2020-09-21 |
| First published | 2020-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 49.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zain Memon |
| Maintainers | zainer |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/lyric-access
- Repository: https://github.com/pricemethod/lyric-access
- Homepage: https://github.com/pricemethod/lyric-access#readme
- Issues: https://github.com/pricemethod/lyric-access/issues
- npm.io page: https://npm.io/package/lyric-access

## Dependencies (2)

- [buffer](https://npm.io/package/buffer.md) ^5.6.0
- [react-native-ble-plx](https://npm.io/package/react-native-ble-plx.md) ^1.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2020-09-21
- 0.2.0 — 2020-09-03
- 0.1.1 — 2020-08-16
- 0.1.0 — 2020-08-16

## README

# lyric-access

A package to integrate the access solution from Lyric into a React Native application.

## Installation

```sh
npm install lyric-access
```

In addition, you need to follow the installation instructions for react-native-ble-plx [here](https://github.com/Polidea/react-native-ble-plx/blob/master/docs/README_V1.md#configuration--installation).

## Usage

This package provides a modal component that handles connecting to a particular lock and sending a code to it. Here's how to use it:

```js
import LyricAccess from 'lyric-access';

const [modalVisible, setModalVisible] = useState(false);
return (
  // ...
  <LyricAccessModal
    modalVisible={modalVisible}
    setModalVisible={setModalVisible}
    lockName={'Lyric-B10AF'} // get this from a custom field in your PMS
    keypadCode={'1234'} // get this from a custom field in your PMS
  />
);
```

When this modal becomes visible, the app will connect to the lock via Bluetooth LE. Upon a successful connection, the spinner will turn into an "Unlock" button. When the user taps the unlock button, the associated keypad code will be sent to the lock.

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