Optional config: null | AnimatedConfigAdds 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.
Typically only used internally, but could be used by a custom Animation class.
Optional callback: null | EndCallbackInterpolates the value before updating the property, e.g. mapping 0-1 to 0-10.
Remove all registered listeners.
See https://reactnative.dev/docs/animatedvalue.html#removealllisteners
Unregister a listener. The id param shall match the identifier
previously returned by addListener().
See https://reactnative.dev/docs/animatedvalue.html#removelistener
Stops any animation and resets the value to its original.
See https://reactnative.dev/docs/animatedvalue#resetanimation
Optional callback: ((value) => void)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.
Optional callback: ((value) => void)
Standard value for driving animations. One
Animated.Valuecan drive multiple properties in a synchronized fashion, but can only be driven by one mechanism at a time. Using a new mechanism (e.g. starting a new animation, or callingsetValue) will stop any previous ones.