Permalink
Browse files

Fix bad type specification in animated

Reviewed By: javache

Differential Revision: D3828502

fbshipit-source-id: 8270b00053d25f72d50f79f895ea77981e3000bb
  • Loading branch information...
1 parent 99e0267 commit 3ff4ee961c490baff2a230fdf6ee6417ae811edd Tobias Ritzau committed with Facebook Github Bot 3 Sep 8, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Animated/src/AnimatedImplementation.js
@@ -963,7 +963,7 @@ class AnimatedValueXY extends AnimatedWithChildren {
};
}
- stopAnimation(callback?: ?() => number): void {
+ stopAnimation(callback?: (value: {x: number, y: number}) => void): void {
this.x.stopAnimation();
this.y.stopAnimation();
callback && callback(this.__getValue());

0 comments on commit 3ff4ee9

Please sign in to comment.