Zoom-in animation — element zooms into view.
Implementation:
1import { Animated } from "react-native";23function ZoomInView({ children }) {4 const scaleAnim = useRef(new Animated.Value(0)).current;56 useEffect(() => {7 Animated.spring(scaleAnim, {8 toValue: 1,9 friction: 5,10 tension: 100,11 useNativeDriver: true,12 }).start();13 }, []);1415 return (16 <Animated.View style={{17 transform: [{ scale: scaleAnim }],18 opacity: scaleAnim,19 }}>20 {children}21 </Animated.View>22 );23}