Skip to content

Commit aa57a1b

Browse files
authored
cherry-pick animation fix to 0.63 (facebook#765)
* Fix animation bug (facebook#763) * pod install * fix pod errors * fix pod errors * fix pod errors
1 parent ab3d356 commit aa57a1b

File tree

2 files changed

+243
-236
lines changed

2 files changed

+243
-236
lines changed

Libraries/Animated/src/nodes/AnimatedValue.js

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

183190
_onAnimatedValueUpdateReceived(value: number): void {

0 commit comments

Comments
 (0)