Changes in v9
- Animated values are now instances of the
SpringValueclass, which gives users access to an imperative API for updating a single animated value.
immediateprops can now be a key or array of keys, instead of only a function or boolean.
nextfunction passed to async
toprop can now be passed any
useSpringprops, instead of only
useSpringhook now supports a deps array, for updating an animation only when certain values changed.
useTransitionhook was rewritten from scratch. (see #809)
useTransitionhook now has a
- The new
cancelprop stops the current animation and prevents future animations. It can be a boolean, a function, a key, or an array of keys.
- Delayed updates can be cancelled by the