| 187 | }, |
| 188 | }); |
| 189 | class HelloTextureStateful extends React.Component<*, { t: * }> { |
| 190 | state = { t: red2x2 }; |
| 191 | node = React.createRef(); |
| 192 | flush() { |
| 193 | this.node.current.flush(); |
| 194 | } |
| 195 | render() { |
| 196 | return ( |
| 197 | <Node |
| 198 | ref={this.node} |
| 199 | shader={shaders.helloTexture} |
| 200 | uniforms={this.state} |
| 201 | /> |
| 202 | ); |
| 203 | } |
| 204 | } |
| 205 | let helloTexture: ?HelloTextureStateful; |
| 206 | const inst = create( |
| 207 | <Surface |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…