$ git show slide-in

Slide in

Basic/anim slide-in

Slide a view in from the left while fading it in.

Main · New Architecture only · worklets live in react-native-worklets
animationNametransform keyframesCSS animations
slide-in.tsx · reanimated 4
const slideIn = {
  from: { opacity: 0, transform: [{ translateX: -100 }] },
  to: { opacity: 1, transform: [{ translateX: 0 }] },
};

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