$ git show spin
Spin loader
Infinite linear rotation for a loading indicator.
const spin = {
from: { transform: [{ rotate: '0deg' }] },
to: { transform: [{ rotate: '360deg' }] },
};
<Animated.View
style={[styles.spinner, {
animationName: spin,
animationDuration: '900ms',
animationIterationCount: 'infinite',
animationTimingFunction: 'linear',
}]}
/>