diff --git a/src/index.js b/src/index.js index 265279776284f7156844f95fada6af96ce0d0c04..e5e6ba2b47679c97af490f71bc5eefa467981231 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._component, + getGLCanvas: glSurface => glSurface.refs.canvas._component, dimensionInvariant: (value, field) => invariant( isAnimated(value) || typeof value === "number" && value > 0,