Spring animation — physics-based animation.
Basic spring:
1import { Animated } from "react-native";23const scaleAnim = useRef(new Animated.Value(1)).current;45Animated.spring(scaleAnim, {6 toValue: 1.5,7 tension: 40,8 friction: 7,9 useNativeDriver: true,10}).start();
Spring parameters:
tension — spring stiffness (higher = faster).friction — damping (higher = less bounce).speed — animation speed.bounciness — bounce amount.Presets:
Reanimated spring:
1import { withSpring } from 'react-native-reanimated';23offset.value = withSpring(100, {4 damping: 10,5 stiffness: 100,6});