Overview
- 🌲 Add Reanimated 3.0 tree shaking support for Web, reducing bundle size by 80%.
- See my PR here: software-mansion/react-native-reanimated#3278
- 👨🏻🔧 Fix sequences #195, #200
- 🩻 Add
Skeleton.Group
component - ☯️ Improve skeleton memoization deep comparison
- ✂️ Remove
@motify/
packages - 🤖 Add option to pass
worklet
function toexitTransition
, allowing for use ofAnimatePresence
'scustom
prop inexitTransition
(closing #193)
Track the PR here: #216
Docs
Install
yarn add moti
Breaking Changes
@motify/
packages have been removed, greatly simplifying installation, types, maintenance, and Expo snack support.- This change should take you under a minute to update.
- Next.js users: remove
@motify/
entries from transpile modulesnext.config.js
. You should only havemoti
there now. - Expo Web users: remove
@motify/
fromwebpack.config.js
. You should only havemoti
there now. - If your app accidentally imported from
@motify/components
somewhere, please change these imports to come frommoti
instead.command + shift + F
on VSCode, and search@motify
MotiPressable
'scontainerStyle
was changed to not apply to the container in #152. This broke styling on iOS likeflex
andposition: 'absolute'
. In0.19
,containerStyle
is changed back to its original behavior from0.17
. If you need Android shadow styles onMotiPressable
, usestyle
instead ofcontainerStyle
.- It's likely this didn't affect you, but to be sure, I recommend searching all of your uses of
containerStyle
onMotiPressable
and make sure it works after the update as expected.
- It's likely this didn't affect you, but to be sure, I recommend searching all of your uses of
Components
<Skeleton.Group />
If you have many skeleton components, you can now wrap them with a single <Skeleton.Group show={loading} />
component. This will help you achieve this type of effect.