import React, {useEffect, useRef} from 'react'; import {Animated, View} from 'react-native'; import {Circle, Mask, Path, Rect, Svg} from 'react-native-svg'; const AnimatedCircle = Animated.createAnimatedComponent(Circle as any); export default () => { const zoom = useRef(new Animated.Value(1)).current; useEffect(() => { Animated.loop( Animated.sequence([ Animated.timing(zoom, { toValue: 4, duration: 2000, useNativeDriver: true, }), Animated.timing(zoom, { toValue: 1, duration: 2000, useNativeDriver: true, }), ]), ).start(); }); return ( ); };