Closed laclys closed 4 years ago
init new RN0.44.3 project
try
import React, { Component } from "react"; import { WebGLView } from "react-native-webgl"; class RedSquareWebGL extends Component { onContextCreate = (gl: WebGLRenderingContext) => { const rngl = gl.getExtension("RN"); gl.clearColor(1, 0, 0, 1); gl.clear(gl.COLOR_BUFFER_BIT); rngl.endFrame(); }; render() { return ( <WebGLView style={{ width: 100, height: 100 }} onContextCreate={this.onContextCreate} /> ); } }
Crash!
Any advice would be appreciated
Anyone resolved this? The app loads, shows a white 100 * 100 white surface and then crashes.
Experiencing the same issue, I don't see any sort of error messages in the JS or native threads.
init new RN0.44.3 project
try
Crash!
Any advice would be appreciated