From 3ff4ee961c490baff2a230fdf6ee6417ae811edd Mon Sep 17 00:00:00 2001 From: Tobias Ritzau Date: Thu, 8 Sep 2016 04:40:57 -0700 Subject: [PATCH] Fix bad type specification in animated Reviewed By: javache Differential Revision: D3828502 fbshipit-source-id: 8270b00053d25f72d50f79f895ea77981e3000bb --- Libraries/Animated/src/AnimatedImplementation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index 4826828e9e..ee685a249c 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/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());