1 | # expo-gl
|
2 |
|
3 | Provides GLView that acts as OpenGL ES render target and gives GL context object implementing WebGL 2.0 specification.
|
4 |
|
5 | # API documentation
|
6 |
|
7 | - [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/gl-view.md)
|
8 | - [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/gl-view/)
|
9 |
|
10 | # Installation in managed Expo projects
|
11 |
|
12 | For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/gl-view/).
|
13 |
|
14 | # Installation in bare React Native projects
|
15 |
|
16 | For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
|
17 |
|
18 | ### Install expo-gl-cpp
|
19 |
|
20 | expo-gl requires that you also install and configure [expo-gl-cpp](https://github.com/expo/expo/tree/master/packages/expo-gl-cpp).
|
21 |
|
22 | ### Add the package to your npm dependencies
|
23 |
|
24 | ```
|
25 | expo install expo-gl
|
26 | ```
|
27 |
|
28 | ### Compatibility
|
29 |
|
30 | To use version `9.0.0` or newer of `expo-gl` you will need to use at least version `0.63.1` of React Native.
|
31 |
|
32 | | expo-gl | react-native |
|
33 | | ------- | ------------ |
|
34 | | <=8.x.x | \* |
|
35 | | >=9.0.0 | >=0.63.1 |
|
36 |
|
37 | ### Configure for iOS
|
38 |
|
39 | Run `npx pod-install` after installing the npm package.
|
40 |
|
41 | ### Configure for Android
|
42 |
|
43 | No additional set up necessary.
|
44 |
|
45 | # Contributing
|
46 |
|
47 | Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
|