$ git show spin

Spin loader

Basic/anim spin

Infinite linear rotation for a loading indicator.

Main · New Architecture only · worklets live in react-native-worklets
animationNameanimationIterationCountCSS animations
spin.tsx · reanimated 4
const spin = {
  from: { transform: [{ rotate: '0deg' }] },
  to: { transform: [{ rotate: '360deg' }] },
};

<Animated.View
  style={[styles.spinner, {
    animationName: spin,
    animationDuration: '900ms',
    animationIterationCount: 'infinite',
    animationTimingFunction: 'linear',
  }]}
/>