# gl-react-blurhash

> Universal gl-react module that implements BlurHash in OpenGL

Latest version **2.0.0** (published 2021-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gl-react-blurhash
pnpm add gl-react-blurhash
yarn add gl-react-blurhash
bun add gl-react-blurhash
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-07-03 |
| First published | 2020-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 29.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Manuel Schiller |
| Maintainers | schiller-manuel |
| Keywords | blurhash, gl-react |

## Links

- npm: https://www.npmjs.com/package/gl-react-blurhash
- Repository: https://github.com/schiller-manuel/gl-react-blurhash
- Homepage: https://github.com/schiller-manuel/gl-react-blurhash#readme
- Issues: https://github.com/schiller-manuel/gl-react-blurhash/issues
- npm.io page: https://npm.io/package/gl-react-blurhash

## Dependencies (1)

- [blurhash](https://npm.io/package/blurhash.md) ^1.1.3

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-07-03
- 1.0.0 — 2020-05-22

## README

# gl-react-blurhash ![](https://img.shields.io/npm/v/gl-react-blurhash.svg) [![runs with expo](https://img.shields.io/badge/Runs%20with%20Expo-000.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000)](https://expo.io/)

Universal [`gl-react`](https://github.com/gre/gl-react) module that implements [BlurHash](https://github.com/woltapp/blurhash) in OpenGL.

## Installation

### Expo

Add the following dependencies:

```sh
expo add gl-react gl-react-expo expo-gl buffer gl-react-blurhash
```

### React Native

First setup [`react-native-unimodules`](https://github.com/unimodules/react-native-unimodules), then add the following dependencies:

```sh
yarn add gl-react gl-react-native buffer gl-react-blurhash
```

## Usage

```js
import React from 'react';
import { Surface } from 'gl-react-expo'; // 'gl-react-native' for React Native
import { Blurhash } from 'gl-react-blurhash';

export default function App {
    return (
        <Surface style={{ width: 300, height: 200 }}>
            <Blurhash hash="LPKA$w{H_c05b{Nqwbx^grotMnNf" />
        </Surface>
    );
}
```

## Example

See [`example`](example) subfolder for a full example.
This example is also available on [snack.expo.io](https://snack.expo.io/@git/github.com/schiller-manuel/gl-react-blurhash:example@develop).

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