79391042

Date: 2025-01-27 14:03:19
Score: 1
Natty:
Report link

With reanimate v3

  const progress = useSharedValue(0);

  const animatedStyle = useAnimatedStyle(() => ({
    backgroundColor: interpolateColor(progress.value, [0, 1], ["red", "green"]),
  }));

  return <Animated.View style={[{ width: 100, height: 100 }, animatedStyle]} />;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jayan