Commit 20a5e6ae authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau Committed by GitHub

Merge pull request #203 from superandrew213/fix-uimanager

Use UIManager.getViewManagerConfig
parents 10d3dce5 3de998ff
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