https://github.com/schiller-manuel/gl-react-blurhash
Universal gl-react module that implements BlurHash in OpenGL
https://github.com/schiller-manuel/gl-react-blurhash
blurhash opengl react-native
Last synced: 9 months ago
JSON representation
Universal gl-react module that implements BlurHash in OpenGL
- Host: GitHub
- URL: https://github.com/schiller-manuel/gl-react-blurhash
- Owner: schiller-manuel
- License: mit
- Created: 2020-05-22T12:26:48.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-07T04:43:08.000Z (over 3 years ago)
- Last Synced: 2025-10-04T19:55:59.765Z (9 months ago)
- Topics: blurhash, opengl, react-native
- Language: TypeScript
- Size: 729 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gl-react-blurhash  [](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://docs.expo.io/bare/installing-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 (
);
}
```
## 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).