diff --git a/src/GLCanvas.captureFrame.android.js b/src/GLCanvas.captureFrame.android.js index bdbabbd88eb850ae8a6b6b47f1e1e1da74e38f31..61ef9cddf6c3c2ce80ef5e5b197a308b9eff879d 100644 --- a/src/GLCanvas.captureFrame.android.js +++ b/src/GLCanvas.captureFrame.android.js @@ -1,7 +1,7 @@ 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.