Commit e7c7335b authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

make it backward compatible

parent 2c41c901
......@@ -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,
......
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