mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Fix bad type specification in animated
Reviewed By: javache Differential Revision: D3828502 fbshipit-source-id: 8270b00053d25f72d50f79f895ea77981e3000bb
This commit is contained in:
parent
99e0267c25
commit
3ff4ee961c
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user