Skip to content

Commit 0a5ffda

Browse files
authored
Fix animation bug (#763) (#764)
1 parent 0e1e205 commit 0a5ffda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/Animated/src/nodes/AnimatedValue.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ class AnimatedValue extends AnimatedWithChildren {
175175
resetAnimation(callback?: ?(value: number) => void): void {
176176
this.stopAnimation(callback);
177177
this._value = this._startingValue;
178+
// TODO(macOS ISS#2323203): A bug fix that hasn't been merged to upstream yet.
179+
if (this.__isNative) {
180+
NativeAnimatedAPI.setAnimatedNodeValue(
181+
this.__getNativeTag(),
182+
this._startingValue,
183+
);
184+
}
178185
}
179186

180187
_onAnimatedValueUpdateReceived(value: number): void {

0 commit comments

Comments
 (0)