npm moti 0.17.0
v0.17.0

latest releases: 0.30.0, 0.29.0, 0.28.1...
3 years ago

0.17.0 (2021-12-15)

Additions

  • 🚀 Reanimated 2.3 support (+ layout animations)
  • 🎸 Expo SDK 44 support
  • ☝️ (Breaking change) Unified all moti packages into a single install (moti, moti/skeleton, moti/interactions)
  • 🕺 Add support for multiple transforms, without needing a transform array
  • 🤳🏽 Export MotiHover and useMotiHover() from moti/interactions to let library authors build their own hoverables

See the small breaking change at the bottom.

Bug Fixes

  • TypeScript type fixes (8586b26)
  • Dependencies (2495f64)
  • Expo SDK 44 Example (35be5a9)
  • Make hovered become false when you open a modal (aae7e16)

Features

  • Add decay support (be6618e)
  • Document the addition of dependency arrays for hooks #120 (96c01ec)
  • Add onFocus and onBlur to MotiPressable (a3ec203)
  • Add onContainerLayout & onLayout (b77bf3f)
  • Move skeleton into moti/skeleton (dab7a4f)
  • Pass accessibility props to MotiPressable (38e7ca8)
  • Pass worklet to MotiPressable transition prop (acf1981)

Breaking Changes

@motify/interactions and @motify/skeleton have been moved to moti/interactions and moti/skeleton respectively.

Please uninstall those packages if you have them, and upgrade moti.

yarn remove @motify/interactions @motify/skeleton
yarn add moti

Next, update your imports:

@motify/interactionsmoti/interactions
@motify/skeletonmoti/skeleton

If you're on VSCode, you can click command + shift + F and then find/replace all instances of from '@motify/interactions'.

Why?

From now on, you only need to install moti, and you get the skeleton and interactions packages alongside it. This greatly simplifies versioning and lets you more easily upgrade moti. It's inspired by the way Next.js uses next/link, next/router, etc.

View the PR.

Don't miss a new moti release

NewReleases is sending notifications on new releases.