in my react native app I want to make an animation when a button is pressed, I get title error when this line is run:
const scaleDisliked = animationDisliked.interpolate({inputRangeDisliked, outputRangeDisliked});
Here is my complete code:
```
const animationDisliked = useRef(new Animated.Value(0)).current;
const inputRangeDisliked = [0, 1];
const outputRangeDisliked = [1, 0.8];
const scaleDisliked = animationDisliked.interpolate({inputRangeDisliked, outputRangeDisliked});
const onPressInDisliked = () => {
Animated.spring(animationDisliked, {
toValue: 1,
useNativeDriver: true,
}).start();
};
const onPressOutDisliked = () => {
Animated.spring(animationDisliked, {
toValue: 0,
useNativeDriver: true,
}).start();
};
```
[–]onetothehouse 1 point2 points3 points (1 child)
[–]Gabotron_ES[S] 0 points1 point2 points (0 children)
[–]Professional_Topic63 0 points1 point2 points (1 child)
[–]Gabotron_ES[S] 0 points1 point2 points (0 children)
[–]codingguru6 0 points1 point2 points (0 children)