Skip to content

Spring animation with delay #12474

Description

@henrikra

Description

When using spring animation with delay the delay is not registered at all. Here is how to use delay

Animated.spring(
  this.state.rotaneAnimation, 
  {toValue: 360, delay: 500},
).start();

But for example with timing is works:

Animated.timing(
  this.state.rotaneAnimation, 
  {toValue: 360, delay: 500},
).start();

Solution

I think the solution lies here: https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/AnimatedImplementation.js#L447 because it looks like the spring does not take delay as parameter

Additional Information

  • React Native version: 0.40.0
  • Platform: both
  • Operating System: MacOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions