# expo-gl

> Provides GLView that acts as OpenGL ES render target and gives GL context object implementing WebGL 2.0 specification.

Latest version **57.0.2** (published 2026-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-gl
pnpm add expo-gl
yarn add expo-gl
bun add expo-gl
```

## Health

**Score 75/100 (B)** — status: active.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 57.0.2 |
| Published | 2026-07-15 |
| First published | 2018-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52328 |
| Author | 650 Industries, Inc. |
| Maintainers | ide, brentvatne, expoadmin, exponent, bycedric, kudochien, alanhughes, tsapeta, expo-bot, philpl, wschurman, ccheever, jesseruder, terribleben, sjchmiela, esamelson |
| Keywords | react-native, expo, gl, glview, webgl |

## Links

- npm: https://www.npmjs.com/package/expo-gl
- Repository: https://github.com/expo/expo
- Homepage: https://docs.expo.dev/versions/latest/sdk/gl-view/
- Issues: https://github.com/expo/expo/issues
- npm.io page: https://npm.io/package/expo-gl

## Dependencies (1)

- [invariant](https://npm.io/package/invariant.md) ^2.2.4

## Recent versions

- 57.0.2 (latest) — 2026-07-15
- 58.0.0 (next) — 2026-09-10
- 58.0.0-canary-20260909-ea7a89a (canary) — 2026-09-09
- 55.0.18 (sdk-55) — 2026-08-25
- 56.0.6-canary-20260701-9100865 (canary-sdk-56) — 2026-07-01
- 56.0.6 (sdk-56) — 2026-07-01
- 55.0.10-canary-20260429-a5e59cf (canary-sdk-55) — 2026-04-29
- 14.0.2 (sdk-51) — 2024-04-24
- 13.6.0 (sdk-50) — 2023-12-12
- 9.2.0-prebuild.0 (prebuild) — 2020-12-04
- 58.0.0-canary-20260902-26df09e — 2026-09-02
- 58.0.0-canary-20260901-2164f24 — 2026-09-02
- 55.0.17 — 2026-08-17
- 58.0.0-canary-20260812-27f94d4 — 2026-08-12
- 58.0.0-canary-20260806-8c2d007 — 2026-08-06
- … 270 more at https://npm.io/package/expo-gl/versions

## README

<p>
  <a href="https://docs.expo.dev/versions/latest/sdk/gl-view/">
    <img
      src="../../.github/resources/expo-gl.svg"
      alt="expo-gl"
      height="64" />
  </a>
</p>

Provides GLView that acts as OpenGL ES render target and gives GL context object implementing WebGL 2.0 specification.

# API documentation

- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/gl-view/)
- [Documentation for the main branch](https://docs.expo.dev/versions/unversioned/sdk/gl-view/)

# Installation in managed Expo projects

For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/gl-view/).

# Installation in bare React Native projects

For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.

### Add the package to your npm dependencies

```
npx expo install expo-gl
```

### Compatibility

To use version `11.2.0` or newer of `expo-gl` you will need to use at least version `0.68.0` of React Native.

| expo-gl            | react-native        |
| ------------------ | ------------------- |
| <=8.x.x            | \*                  |
| >=9.0.0 && <11.2.0 | >=0.63.1 && <0.65.0 |
| >=11.2.0           | >=0.68.0            |

To use reanimated worklets you will need compatible version of `react-native-reanimated`.

| expo-gl  | react-native-reanimated |
| -------- | ----------------------- |
| <11.3.0  | <=2.8.0                 |
| >=11.3.0 | >2.8.0                  |

### Configure for Android

No additional set up necessary.

### Configure for iOS

Run `npx pod-install` after installing the npm package.

# Contributing

Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md).

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