react-native-community/discussions-and-proposals

Add duration parameter to Animated.spring

ReactorCSA opened this issue · 0 comments

Introduction

Add duration parameter to Animated.spring.

Sometimes theres a high need to synchronize animations. Example —
Cubes moving to random points and then they have to hide together. But because of current implementation the "hide" animation will occur only after the cube gets to the end point. Not synchronously.

Details

It can be done as in reanimated, they provide some duration functionality for spring animations as well as react-spring does.

Discussion points

No points. Just a very useful feature for animations :)