Releases: nandorojo/moti
Releases · nandorojo/moti
v0.12.2
v0.12.1
v0.12.0
v0.11.0
v0.10.1
v0.10.0
0.10.0 (2021-04-21)
Features
- add
exitTransition
support & docs! (26a55ac)
See tweet about exitTransition
: https://twitter.com/FernandoTheRojo/status/1384918970877288456?s=20
Options passed to exitTransition
will only apply to the exit
prop, when a component is exiting.
<MotiView
// the animate prop uses the transition
transition={{ type: 'spring' }}
animate={{ opacity: 1, scale: 1 }}
// when exiting, it will use a timing transition
exitTransition={{ type: 'timing' }}
exit={{ opacity: 0, scale: 0.1 }}
/>
By default, exit
uses transition
to configure its animations, so this prop is not required.
However, if you pass exitTransition
, it will override transition
for exit animations.
To see how to use this prop, see the transition
docs.
v0.9.0
v0.8.2
v0.8.1
v0.8.0
0.8.0 (2021-04-01)
Breaking changes
- You need to upgrade Reanimated to at least v2.0.0. This is now available with Expo SDK 41: https://docs.expo.io/versions/v41.0.0/sdk/reanimated/
- This is technically only needed if you use spring animations, but I recommend doing it either way.
Features
- Add compatibility with Reanimated v2 stable!
- turn
useDynamicAnimation().animateTo
into a worklet (ebd2830)