From e7c7335ba7a7c9068069c03572051e2df87f642a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Thu, 15 Sep 2016 21:12:30 +0200 Subject: [PATCH] make it backward compatible --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e5e6ba2..a0f2c5e 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._component, + getGLCanvas: ({ refs: { canvas }}) => canvas._component || canvas.refs.node, dimensionInvariant: (value, field) => invariant( isAnimated(value) || typeof value === "number" && value > 0, -- 2.26.2