Skip to content

Commit

Permalink
Fix bad type specification in animated
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D3828502

fbshipit-source-id: 8270b00053d25f72d50f79f895ea77981e3000bb
  • Loading branch information
Tobias Ritzau authored and Facebook Github Bot 3 committed Sep 8, 2016
1 parent 99e0267 commit 3ff4ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Animated/src/AnimatedImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3ff4ee9

Please sign in to comment.