Skip to content

Commit

Permalink
fix: fix using a Math instead of Number
Browse files Browse the repository at this point in the history
  • Loading branch information
xotahal committed Apr 26, 2019
1 parent db58cc3 commit 9364af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SharedElementRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9364af0

Please sign in to comment.