Fix bad type specification in animated

Reviewed By: javache

Differential Revision: D3828502

fbshipit-source-id: 8270b00053d25f72d50f79f895ea77981e3000bb
This commit is contained in:
Tobias Ritzau 2016-09-08 04:40:57 -07:00 committed by Facebook Github Bot 3
parent 99e0267c25
commit 3ff4ee961c
1 changed files with 1 additions and 1 deletions

View File

@ -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());