Skip to content

Releases: nandorojo/moti

v0.7.6

01 Apr 18:09
Compare
Choose a tag to compare

0.7.6 (2021-04-01)

Bug Fixes

v0.7.5

01 Apr 17:53
Compare
Choose a tag to compare

0.7.5 (2021-04-01)

Bug Fixes

  • workletize hooks (9eeff15)
  • Fix useDynamicAnimation is not defined

v0.7.4

01 Apr 14:29
Compare
Choose a tag to compare

0.7.4 (2021-04-01)

Bug Fixes

  • deprecated react native types message (6cc94f9)

v0.7.3

30 Mar 14:49
Compare
Choose a tag to compare

0.7.3 (2021-03-30)

New Features

useDynamicAnimation

New hook that lets you use style objects dynamically, rather than using static variants.

const animation = useDynamicAnimation(() => {
  return {
    height: 100
  }
})

const onLayout = ({ nativeEvent }) => {
  animation.animateTo({
    ...animation.current,
    height: nativeEvent.layout.height
  })
}

return <MotiView state={animation} />

Benefits

  • High performance
  • Zero re-renders
  • Animations run on the native thread
  • Easy API

Imports

  • You can now import MotiView, MotiText without an alias.
    • import { MotiView } from 'moti'
    • This is a non-breaking change. You can still import { View as MotiView } from 'moti'
      • However, this may be deprecated in the future.

Bug Fixes

  • Skeleton fixed on web out of the box! (see tweet)
  • Animate Presence now works with multiple style props, closing #41

v0.7.2

28 Mar 20:44
Compare
Choose a tag to compare

0.7.2 (2021-03-28)

Bug Fixes

  • animate presence callback (8bde766)

v0.7.1

23 Mar 00:57
Compare
Choose a tag to compare

0.7.1 (2021-03-23)

Bug Fixes

v0.7.0

22 Mar 21:27
Compare
Choose a tag to compare

0.7.0 (2021-03-22)

Features

  • performant, dynamic-animation hook (8f65da7)

v0.6.5

19 Mar 14:40
Compare
Choose a tag to compare

0.6.5 (2021-03-19)

Bug Fixes

v0.6.4

13 Mar 19:56
Compare
Choose a tag to compare

0.6.4 (2021-03-13)

Note: Version bump only for package moti

v0.6.2

13 Mar 15:27
Compare
Choose a tag to compare

0.6.2 (2021-03-13)

Note: Version bump only for package moti