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.
See https://reactnative.dev/docs/animatedvalue.html#addlistener
Converts {x, y}
into {left, top}
for use in style, e.g.
style={this.state.anim.getLayout()}
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
2D Value for driving 2D animations, such as pan gestures. Almost identical API to normal
Animated.Value
, but multiplexed. Contains two regularAnimated.Value
s under the hood.