Skip to content

v3.11.0

Compare
Choose a tag to compare
@gre gre released this 24 Aug 15:18
· 311 commits to master since this release

gl-react-native is backed by react-native-webgl

This is an important internal change in gl-react-native but it shouldn't break anything (Surface API does not change at all).

Migration

  • Add react-native-webgl dependency to your project and link it (see README install doc)
  • gl-react-native itself no longer have any native code so simply remove it from the linking native lib
  • if you were using EXGLView or Image directly out of gl-react-native, instead, just import {WebGLView} from react-native-webgl (there is however no longer any Image polyfill, but it should be possible to implement your own OR just directly use the new gl.getExtension("RN").loadTexture({ image }))