Expo GLView in managed app doesn't trigger onContextCreate

I’m trying to use GLView to draw some animation, but the GLView doesn’t display anything. I try to add a console.log at the start of GLView’s onContextCreate, and nothing was logged, which means onContextCreate is not called. Do I need some configuration on my phone, or it was obsoleted?

Here’s a link for snack:

Android version is not showing anything.

Expo diagnostics

Expo CLI 2.11.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      npm: 6.4.1 - C:\Program Files (x86)\Microsoft Visual Studio\2017\MSBuild\Microsoft\VisualStudio\NodeJs\npm.CMD

Dependencies

    "@types/react": "^16.8.4",
    "@types/react-dom": "^16.8.2",
    "@types/react-native": "^0.57.38",
    "expo": "^32.0.0",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "typescript": "^3.3.3333"

App.js

import React from 'react';
import { Text, View } from 'react-native';
import { GLView } from "expo";
export default class App extends React.Component {
  constructor(props) {
    super(props);
    console.log("end of ctor.");
  }

  render() {
    console.log("render.");
    return (
      <View style=>
        <Text>Header</Text>
        <GLView onContextCreate={this._onContextCreate} />
        <Text>Footer</Text>
      </View>
    );
  }
  _onContextCreate = gl => {
    console.log("_onContextCreate is called.");
  };
}

Android Screen
Header and Footer displayed at the top-left corner.

Console

end of ctor.
render.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.