From 76997a6103a10a327d0e1d979dcb415aff59924e Mon Sep 17 00:00:00 2001 From: cawfree Date: Mon, 16 Sep 2019 13:04:34 +0100 Subject: [PATCH] Updated UIManager import for the latest version of react-native. --- package.json | 5 +++-- src/GLCanvas.captureFrame.android.js | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6d3a353..f553390 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 61ef9cd..a476e57 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. -- 2.26.2