$ git show fade-in

Fade in

Basic/anim fade-in

Fade a view from 0 to 1 opacity on mount.

Main · New Architecture only · worklets live in react-native-worklets
animationNameanimationDurationCSS animations
fade-in.tsx · reanimated 4
// Reanimated 4: a CSS animation, no shared values or hooks needed
const fadeIn = { from: { opacity: 0 }, to: { opacity: 1 } };

<Animated.View
  style={[styles.box, {
    animationName: fadeIn,
    animationDuration: '400ms',
    animationTimingFunction: 'ease-out',
  }]}
/>