From 706d2f5df82322bdf5d1bb39c527af4c9cc0a7ab Mon Sep 17 00:00:00 2001 From: Steven Scaffidi Date: Thu, 15 Sep 2016 09:55:12 -0700 Subject: [PATCH] Updating the animated surface for RN 0.33 This commit https://github.com/facebook/react-native/commit/eb3360b02ab82d20bc3c3f38f543b0d742598346 requires this change. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e21431c..2652797 100644 --- a/src/index.js +++ b/src/index.js @@ -55,7 +55,7 @@ module.exports = { AnimatedSurface: makeSurface({ View: Animated.View, GLCanvas: Animated.createAnimatedComponent(GLCanvas), - getGLCanvas: glSurface => glSurface.refs.canvas.refs.node, + getGLCanvas: glSurface => glSurface.refs.canvas.refs._component, dimensionInvariant: (value, field) => invariant( isAnimated(value) || typeof value === "number" && value > 0, -- 2.26.2