diff --git a/example/package.json b/example/package.json index 41d8179fc6fe588e6f53b88af53f7a808afbea85..d97d0266c5174475b4776ef4327dcf99543a990d 100644 --- a/example/package.json +++ b/example/package.json @@ -7,12 +7,12 @@ }, "dependencies": { "crypto": "0.0.3", - "gl-react": "2.2.8", + "gl-react": "^2.0.0", "gl-react-blur": "^1.3.0", "gl-react-native": "file:..", "glsl-transitions": "^2017.1.10", - "react": "15.4.2", - "react-native": "0.42.0", + "react": "16.8.6", + "react-native": "0.60.5", "react-native-fs": "github:gre/react-native-fs#rn-40", "seedrandom": "gre/seedrandom#released" } 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.