└── README.md /README.md: -------------------------------------------------------------------------------- 1 | ## react-native-webgl is deprecated 2 | 3 | Since [react-native-unimodules](https://github.com/unimodules/react-native-unimodules) was introduced we can now use Expo modules like `expo-gl` which is where the webgl implementation has been continued and is actively maintained. 4 | 5 | We therefore recommend you now move to use [expo-gl](https://github.com/expo/expo/tree/master/packages/expo-gl#expo-gl): 6 | 7 | **You will need a react-native-unimodules setup** 8 | 9 | ``` 10 | yarn add react-native-unimodules 11 | ``` 12 | 13 | If it's the first time you install `react-native-unimodules`, you will have to carefully follow the documentation to configure your project: 14 | [configure unimodules](https://github.com/unimodules/react-native-unimodules) (if not yet done) 15 | 16 | **You can then install expo-gl dependencies:** 17 | 18 | ``` 19 | yarn add expo-gl expo-gl-cpp 20 | ``` 21 | 22 | ### If you use `gl-react-native` 23 | 24 | Upgrade to latest version of `gl-react-native` that now depends on `expo-gl` and `expo-gl-cpp` (you don't need to install it, it also won't depend on this package anymore). 25 | --------------------------------------------------------------------------------