$ git show pulse
Pulse ring
A ring that expands and fades out behind a dot, on repeat. Good for live or recording states.
const ring = {
from: { opacity: 0.7, transform: [{ scale: 1 }] },
to: { opacity: 0, transform: [{ scale: 2.4 }] },
};
<View>
<Animated.View
style={[styles.dot, StyleSheet.absoluteFill, {
animationName: ring,
animationDuration: '1.4s',
animationIterationCount: 'infinite',
animationTimingFunction: 'ease-out',
}]}
/>
<View style={styles.dot} />
</View>