Files
react-native/Libraries
Eric Rozell 8ba771c3dd Fire AnimatedValue.stopAnimation callback with correct native value
Summary:
AnimatedValue fires a callback with the current value (raw value + offset) after calling it's `stopAnimation` method. The `_value` field on the `AnimatedValue` node is not necessarily kept in sync with the NativeAnimated value node, so the value provided to the callback may be out of sync.

This change checks if the `AnimatedValue` is a native node and passes the callback to the `NativeAnimatedAPI.getValue` callback, defaulting to the previous current JS node state if the node is not native.

Changelog:
[General][Fixed] - AnimatedValue.stopAnimation callback with correct value for NativeAnimated

Reviewed By: yungsters

Differential Revision: D32968572

fbshipit-source-id: b83f86eabe5456f762a15bc29cacb43f84513f6c
2021-12-09 11:40:13 -08:00
..
2021-11-10 15:40:15 -08:00
2021-11-10 15:40:15 -08:00
2021-11-10 15:40:15 -08:00
2021-09-28 14:50:41 -07:00
2021-07-01 09:04:46 -07:00
2021-12-07 13:42:18 -08:00
2021-08-26 01:06:44 -07:00
2021-04-26 22:57:55 -07:00
2021-11-10 15:40:15 -08:00
2021-08-24 07:21:56 -07:00