$ git show spring-bounce
Spring bounce
Drop a view in with a bouncy spring. Tune damping for more or less bounce.
This snippet uses APIs that didn’t change between versions, so the same code runs on Reanimated 4 and 3.
const y = useSharedValue(-60);
useEffect(() => {
y.value = withSpring(0, { damping: 8, stiffness: 120, mass: 0.8 });
}, []);
const style = useAnimatedStyle(() => ({ transform: [{ translateY: y.value }] }));