import {useCallback} from 'react'; import { Animated, Button, Easing, Text, View, useAnimatedValue, } from 'react-native'; import {Circle, Mask, Path, Rect, Svg} from 'react-native-svg'; export const EASING_IN: (t: number) => number = Easing.bezier(0.7, 0, 0.3, 1); export const EASING_OUT: (t: number) => number = Easing.bezier(0.5, 0, 0.5, 1); const AnimatedSvg = Animated.createAnimatedComponent(Svg); export default function Playground() { const animatedValue = useAnimatedValue(0); const handleMouseEnter = useCallback(() => { Animated.timing(animatedValue, { duration: 350, easing: EASING_IN, toValue: 1, useNativeDriver: false, }).start(); }, [animatedValue]); const handleMouseLeave = useCallback(() => { Animated.timing(animatedValue, { duration: 350, easing: EASING_OUT, toValue: 0, useNativeDriver: false, }).start(); }, [animatedValue]); return ( Text1 console.log('sadas')} /> Text2