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]} />;