diff --git a/package.json b/package.json index 6d3a353eb17dd0bf934fbd9a22c7a83d0d32e54d..f55339037d4601615b1eff9cf4d007d279cbb391 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gl-react-native", - "version": "2.60.0", + "version": "2.60.1", "description": "OpenGL bindings for react-native to implement complex effects over images and components, in the descriptive VDOM paradigm", "repository": { "type": "git", @@ -20,7 +20,8 @@ "license": "MIT", "peerDependencies": { "gl-react": "^2.2.4", - "react-native": "*" + "react-native": "^0.60.5", + "react": "^16.8.6" }, "dependencies": { "invariant": "2.2.0" diff --git a/src/GLCanvas.captureFrame.android.js b/src/GLCanvas.captureFrame.android.js index 61ef9cddf6c3c2ce80ef5e5b197a308b9eff879d..a476e573f12d5f058fe5eb870289aebd2bdf8354 100644 --- a/src/GLCanvas.captureFrame.android.js +++ b/src/GLCanvas.captureFrame.android.js @@ -1,6 +1,5 @@ import invariant from "invariant"; -import {NativeModules} from "react-native"; -const {UIManager} = NativeModules; +import {UIManager, NativeModules} from "react-native"; const GLCanvas = UIManager.getViewManagerConfig('GLCanvas'); invariant(GLCanvas, `gl-react-native: the native module is not available.