Commit a589bb1c authored by Andrew Shini's avatar Andrew Shini

Use UIManager.getViewManagerConfig

parent 10d3dce5
import invariant from "invariant";
import {NativeModules} from "react-native";
const {UIManager} = NativeModules;
const {GLCanvas} = UIManager;
const GLCanvas = UIManager.getViewManagerConfig('GLCanvas')
invariant(GLCanvas,
`gl-react-native: the native module is not available.
Make sure you have properly configured it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment