$ git show success-check

Success checkmark

Intermediate/anim success-check

A circle springs in, then a checkmark draws itself. For payment or form success.

Main · New Architecture only · worklets live in react-native-worklets

This snippet uses APIs that didn’t change between versions, so the same code runs on Reanimated 4 and 3.

withSpringwithDelayuseAnimatedPropsreact-native-svg
success-check.tsx · reanimated 4
// react-native-svg draws the check; animating strokeDashoffset reveals it
const AnimatedPath = Animated.createAnimatedComponent(Path);
const LEN = 32; // length of the check path below

const scale = useSharedValue(0);
const draw = useSharedValue(LEN);

useEffect(() => {
  scale.value = withSpring(1, { damping: 10 });
  draw.value = withDelay(250, withTiming(0, { duration: 350, easing: Easing.out(Easing.cubic) }));
}, []);

const circle = useAnimatedStyle(() => ({ transform: [{ scale: scale.value }] }));
const pathProps = useAnimatedProps(() => ({ strokeDashoffset: draw.value }));

<Animated.View style={[styles.circle, circle]}>
  <Svg width={52} height={52} viewBox="0 0 52 52">
    <AnimatedPath
      d="M15 27l7 7 15-15"
      stroke="white" strokeWidth={4} strokeLinecap="round" strokeLinejoin="round" fill="none"
      strokeDasharray={LEN}
      animatedProps={pathProps}
    />
  </Svg>
</Animated.View>