Skip to content

Releases: oblador/react-native-animatable

1.1.1

19 Mar 00:17
Compare
Choose a tag to compare
  • Fixes default value for scale* transforms.
  • Fixes start value of margin* & padding* when mixing generic and directional values.
  • Fixes bug where regular animations would not create interaction handle.
  • Fixes a bug where transition() & transitionTo() would not respect the useNativeDriver prop.
  • Adds support for tintColor.

1.1.0

30 Nov 10:24
Compare
Choose a tag to compare
  • Custom easing functions are now supported on both transitions and animations.
  • Added a bunch of new standard built in easing functions.
  • Fixed a regression where setting easing via prop didn't work for animations.

1.0.0

24 Nov 17:06
Compare
Choose a tag to compare

Yay new features!

  • Custom animations!
  • Natively driven animations!

And:

  • Fixes bug when using transforms in imperative transitionTo().
  • Fixes warning about unsupported prop types.
  • Fixes layout animations on web.

Breaking Changes
There's quite a few breaking changes although I expect most use cases will continue to work as before or slightly improved.

  • Made easing functions mirror the CSS spec instead of using the predefined React Native core ones.
  • Default easing function is now ease (previously ease-in-out).
  • slide, fade, wobble, lightSpeed animations now use fixed values for translation instead of view size.
  • Some animations that previously accepted arguments besides duration doesn't anymore.

0.6.1

18 May 10:08
Compare
Choose a tag to compare
  • Fixes regression in shake animation.
  • Adds rotate animation.

0.6.0

07 May 17:46
Compare
Choose a tag to compare
  • Refactored to ES2016.
  • Breaking change: Removed backwards support for transitionValue prop.
  • Breaking change: Splits imports between React and React Native to fix warnings in RN 0.25.
  • Breaking change: With ES2016 the import statement has changed to: import * as Animatable from 'react-native-animatable'

0.5.2

20 Mar 15:04
Compare
Choose a tag to compare
  • Fixes bug where onAnimationEnd was never triggered when iterationCount is greater than 1.

0.5.1

29 Feb 03:25
Compare
Choose a tag to compare
  • Fixes bug in transitionTo() causing it to throw if not accompanied with a transition prop.
  • Fixes strange whitespace characters causing flow to not properly function.

0.5.0

31 Jan 23:09
Compare
Choose a tag to compare

Breaking change:

  • Promises are no longer rejected when they are cancelled. This is because React Native now will show a red screen for any unhandled rejected promise by default. To determine wether the animation was cancelled or completed, use the returned endState object; this.refs.view.bounce(800).then((endState) => console.log(endState.finished ? 'bounce finished' : 'bounce cancelled'))

Other changes:

  • Adds onAnimationBegin prop.
  • Removes react-native from peer dependencies, make sure your application has this as an explicit dependency.
  • Fixes bug where slide animations would throw errors.

0.4.1

25 Dec 21:21
Compare
Choose a tag to compare
  • Adds onAnimationEnd prop.
  • Animations now return promises.

0.4.0

29 Nov 12:23
Compare
Choose a tag to compare
  • transition now supports multiple values, just use an array instead of a string: transition={['fontSize', 'color']}
  • transitionValue is deprecated, use style prop instead: style={{fontSize: this.state.fontSize}} or style={someCondition ? styles.whenCondition : styles.whenNot}.
  • StyleSheet.flatten is now required for transition, just upgrade to RN 0.15 if it complains.
  • React Native 0.16 RC support.