0.5.0
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
endStateobject;this.refs.view.bounce(800).then((endState) => console.log(endState.finished ? 'bounce finished' : 'bounce cancelled'))
Other changes:
- Adds
onAnimationBeginprop. - Removes
react-nativefrom peer dependencies, make sure your application has this as an explicit dependency. - Fixes bug where slide animations would throw errors.