Sets the offset value to the base value, and resets the base value to zero. The final output of the value is unchanged.
Merges the offset value into the base value and resets the offset to zero. The final output of the value is unchanged.
Interpolates the value before updating the property, e.g. mapping 0-1 to 0-10.
Sets an offset that is applied on top of whatever value is set, whether via
setValue
, an animation, or Animated.event
. Useful for compensating
things like the start of a pan gesture.
Directly set the value. This will stop any animations running on the value and update all the bound properties.
Stops any running animation or tracking. callback
is invoked with the
final value after stopping the animation, which is useful for updating
state to match the animation position with layout.
Adds an asynchronous listener to the value so you can observe updates from animations. This is useful because there is no way to synchronously read the value because it might be driven natively.