Commit 03ad7324 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau Committed by GitHub

Merge pull request #205 from cawfree/master

Updated package dependencies to support react-native 0.60.5
parents 941edfe2 dd76aeb0
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
}, },
"dependencies": { "dependencies": {
"crypto": "0.0.3", "crypto": "0.0.3",
"gl-react": "2.2.8", "gl-react": "^2.0.0",
"gl-react-blur": "^1.3.0", "gl-react-blur": "^1.3.0",
"gl-react-native": "file:..", "gl-react-native": "file:..",
"glsl-transitions": "^2017.1.10", "glsl-transitions": "^2017.1.10",
"react": "15.4.2", "react": "16.8.6",
"react-native": "0.42.0", "react-native": "0.60.5",
"react-native-fs": "github:gre/react-native-fs#rn-40", "react-native-fs": "github:gre/react-native-fs#rn-40",
"seedrandom": "gre/seedrandom#released" "seedrandom": "gre/seedrandom#released"
} }
......
{ {
"name": "gl-react-native", "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", "description": "OpenGL bindings for react-native to implement complex effects over images and components, in the descriptive VDOM paradigm",
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
"gl-react": "^2.2.4", "gl-react": "^2.2.4",
"react-native": "*" "react-native": "^0.60.5",
"react": "^16.8.6"
}, },
"dependencies": { "dependencies": {
"invariant": "2.2.0" "invariant": "2.2.0"
......
import invariant from "invariant"; import invariant from "invariant";
import {NativeModules} from "react-native"; import {UIManager, NativeModules} from "react-native";
const {UIManager} = NativeModules;
const GLCanvas = UIManager.getViewManagerConfig('GLCanvas'); const GLCanvas = UIManager.getViewManagerConfig('GLCanvas');
invariant(GLCanvas, invariant(GLCanvas,
`gl-react-native: the native module is not available. `gl-react-native: the native module is not available.
......
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