Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delay attribute not supported in Animated.spring(), is ignored. #714

Closed
skhameneh-strive opened this issue Nov 13, 2017 · 2 comments
Closed

Comments

@skhameneh-strive
Copy link

Works:

      Animated.sequence([
        Animated.delay(delay),
        Animated.spring(this.state.slideX, {
          toValue: 0,
          bounciness: 5,
          speed: 8,
          useNativeDriver: true
        })
      ]).start()

Does not work:

      Animated.spring(this.state.slideX, {
        delay: delay
        toValue: 0,
        bounciness: 5,
        speed: 8,
        useNativeDriver: true
      }).start()

Notes:

  1. useNativeDriver has no impact.
  2. Both work in iOS and Android.
  3. Versions:
@necolas
Copy link
Owner

necolas commented Nov 15, 2017

Yeah this is because animatedjs/animated has not been well maintained and the version of Animated in RN has newer features.

@necolas
Copy link
Owner

necolas commented Nov 15, 2017

Closing / folding this issue into #716

@necolas necolas closed this as completed Nov 15, 2017
necolas added a commit that referenced this issue Dec 6, 2017
Replaces the 'animated' package with the latest implementation from
React Native. Requires a few imports to be replaced.

Close #716
Fix #714
Fix #688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants