Create magical move transitions between scenes in react-native ??✨
onWillAppear
and onWillDisappear
Scene life-cycle eventsimageSizeHint
and useNativeClone
propszIndex
prop for setting the render-order when multiple animations are executeduseNativeClone
prop for explicitly disabling/enabling the use of native-clonesduration
, delay
and easing
props, which were used from the source component, but they should have been used from the target componentcreateMagicMoveComponent
signature to allow pass-through of props (NOW: createMagicMoveComponent(Component, props)
, see README)This is a big release of RNMM, not specifically in terms of features, but in terms of a new clone based architecture enabling native extensions and putting down the groundwork for future features. The native extensions are optional, but are recommended in order to provide a flicker-free experience on both iOS and Android. A new default transition called move
has been introduced which animates images seamlessly (taking into account the resizeMode
and image clipping) without and stretching or tearing.
move
transition, for seamless transitions when source and target are the same, but are sized differently or use different border radiireact-native link react-native-magic-move
)debug
prop for Provider
and Scene
, which also propagates into the rendering hierarchyclone
based architecture to enable native optimisationsmorph
transition to always use the native driverbackfaceVisibility
prop warnings in the flip
transitionmove
transition is now the default transition. Use morph
if the content is distinctly different.React.Fragment
.scale
transition has been deprecated and will be removed in the near future. Use the new move
transition instead.react-navigation
(see react-navigation-magic-move
on how to enable it)disabled
prop for disabling transitions on scenes and componentsreact-native-web
shrinkAndGrow
transition not disappearing entirelysquashAndStretch
transition when animating from top-left to right-bottomdissolve
transitionmorph
transition to better look like the source shapemorph, scale, flip, flip.x, flip.y, flip.xy, dissolve, shrinkAndGrow, squashAndStretch
useNativeDriver
is now automatically enabled so you don't need to specify it explicitely. A warning is shown when animating props that cannot be handled my the native driver.debug
option