diff --git a/src/SharedElementRenderer.js b/src/SharedElementRenderer.js index e27b1d3..fa8eabe 100644 --- a/src/SharedElementRenderer.js +++ b/src/SharedElementRenderer.js @@ -57,7 +57,7 @@ class SharedElementRenderer extends PureComponent { const animations = []; let translateYValue = 0; - if (!Math.isNaN(source.position.pageY)) { + if (!Number.isNaN(source.position.pageY)) { translateYValue = new Animated.Value(source.position.pageY); }