$ git show entering-preset

Entering preset

Basic/anim entering-preset

Use built-in layout animations for mount and unmount, no shared values needed.

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.

FadeInDownFadeOutlayout
entering-preset.tsx · reanimated 4
<Animated.View
  entering={FadeInDown.duration(400).springify()}
  exiting={FadeOut.duration(200)}
  layout={LinearTransition}
  style={styles.card}
/>