React-native: [Animated] spring.onComplete function?

Created on 3 Oct 2015  路  4Comments  路  Source: facebook/react-native

If there is a callback for on spring animation complete will be great.

Locked

Most helpful comment

this.animateValue.spring({}).start(function onComplete() {})

The start call takes a function that is called on complete.

All 4 comments

this.animateValue.spring({}).start(function onComplete() {})

The start call takes a function that is called on complete.

Thanks @browniefed 馃榾

Document this?

Found documention here https://facebook.github.io/react-native/docs/animated.html#working-with-animations.

However, it's not easy to discover immdiately. I found it after I found this issue.

Was this page helpful?
0 / 5 - 0 ratings