Release v2.27.0 · ProjectSeptemberInc/gl-react-native · GitHub

  • import React , { Component } from ” react ” ; import { View , Animated } from ” react-native ” ; import { Surface } from ” gl-react-native ” ; import GL from ” gl-react ” ; const stateForTime = t => ({ colors : [ [ Math .
  • import React , { Component } from ” react ” ; import { View , Animated } from ” react-native ” ; import { AnimatedSurface } from ” gl-react-native ” ; import GL from ” gl-react ” ; export default class AnimatedExample extends Component { state = { heightValue : new Animated.
  • Node uniforms = {{ colors, particles, }} shader = {{ // inline example frag : ` precision highp float; varying vec2 uv; uniform vec4 colors[3]; uniform vec2 particles[3]; // N.B. don’t abuse these technique.
  • cos ( 1 + 0.003 * t), 1 ] ], particles : [ [ 0.3 , 0.3 ], [ 0.7 , 0.5 ], [ 0.4 , 0.9 ] ] }); export default class AnimatedExample extends Component { state = stateForTime ( 0 ); componentWillMount () { const begin = Date .
  • interval ); } render () { const { colors , particles } = this .

Read the full article, click here.


@greweb: “gl-react-native 2.27.0 featuring Array uniforms, AnimatedSurface, big triangle optim”


gl-react-native – OpenGL bindings for React Native to implement complex effects over images and components, in the descriptive VDOM paradigm


Release v2.27.0 · ProjectSeptemberInc/gl-react-native · GitHub