"use client"
import { Platform } from 'react-native'
import React, { useEffect } from 'react';
import { useAnimatedValue } from 'app/lib/hooks/use-animated-value';
import { View } from 'app/design/view'
import { Animated } from 'react-native';
import Svg, { G, Circle } from 'react-native-svg';
import { nativeDriver } from 'app/lib/platform/animation'
function RotatingIcon() {
const spinValue = useAnimatedValue(0);
useEffect(() => {
const animation = Animated.loop(
Animated.timing(spinValue, {
toValue: 1,
duration: 2000,
useNativeDriver: nativeDriver,
})
);
animation.start();
return () => animation.stop();
}, [spinValue]);
const spin = spinValue.interpolate({
inputRange: [0, 1],
outputRange: ['0deg', '360deg'],
});
return (