react-native-animated-linear-gradient icon indicating copy to clipboard operation
react-native-animated-linear-gradient copied to clipboard

Disable "isInteraction" on Animated.timing

Open devladinci opened this issue 4 years ago • 1 comments

While isInteraction is enabled won't get callbacks InteractionManager.runAfterInteractions. This can be really hard to debug by the way.

    Animated.parallel(
      [color0, color1].map(animatedColor => {
        return Animated.timing(animatedColor, {
          toValue: customColors.length,
          duration: customColors.length * speed,
          easing: Easing.linear,
          isInteraction: false,
        })
      })
    )
      .start(this.startAnimation);

devladinci avatar Mar 16 '21 15:03 devladinci

How about add isInteraction (and other Animated params) to component props?

heineiuo avatar Mar 19 '21 04:03 heineiuo