Estoy tratando de hacer girar una imagen infinitamente, un disco giratorio. Verifiqué usando animation o react-native-animatable . Tienen duración y tiempo, ¿cómo giro sin ponerle tiempo o ángulo de giro?
const handleAnimation = () => { Animated.timing(rotateAnimation, { toValue: 1, duration: 72000, useNativeDriver: false, }).start(() => { rotateAnimation.setValue(0); }); }; <TouchableOpacity onPress={async () => handleAnimation()}> <Animated.Image style={{ width: 300, height: 300, transform: [{ rotate: interpolateRotating }] }} source={abcd} > </Animated.Image> </TouchableOpacity>Intente agregar Animated.timing en un Animated.loop
Animated.loop( Animated.timing(rotateAnimation, { toValue: 1, duration: 72000, useNativeDriver: false, }) ).start();