const [animatePress, setAnimatePress] = useState(new Animated.Value(1)) const animateIn = () => { Animated.timing(animatePress, { toValue: 0.5, duration: 500, useNativeDriver: true // Add This line }).start(); }