gl-react-native

React Native standalone implementation of gl-react, an universal React library to write and compose WebGL shaders

Usage no npm install needed!

<script type="module">
  import glReactNative from 'https://cdn.skypack.dev/gl-react-native';
</script>

README

icon gl-react-native

If you are using Expo, it is recommended to use gl-react-expo instead.

gl-react-native is the React Native implementation of gl-react. It is in fact backed by unimodules and expo-gl.

Install

You will have to set up react-native-unimodules as documented here: https://github.com/unimodules/react-native-unimodules

You will need to setup react-native-unimodules

yarn add react-native-unimodules

If it's the first time you install react-native-unimodules, you will have to carefully follow the documentation to configure your project: configure unimodules (if not yet done)

You can then install gl-react dependencies:

yarn add gl-react gl-react-native

Links