Quick Install
Terminal
npx expo install react-native-reanimated react-native-worklets

Target Dependencies & Architecture

react-native-reanimated@~4.1.0react-native-worklets@^0.5.1
Layout & Transitions

Announcements - React Native Reanimated Custom Layout Animation

layout animationreact native animationsreact native reanimated

Interaction & Gesture Mechanics

This component is a reusable React Native building block powered by **React Native Reanimated**. It introduces a custom **Layout animation** that smoothly animates items as they enter and exit the screen. The system exposes two parts: * `Announcements` - the wrapper container * `AnnouncementsItem` - the animated element ### `Announcements` `Announcements` behaves like a lightweight `FlatList`: it renders a `View` and accepts `data` and `renderItem`. Whenever the `data` array changes, a new `AnnouncementsItem` is mounted and its entrance animation automatically plays. ### `AnnouncementsItem` This component handles the full animation lifecycle and exposes the following API: * `children` - your custom UI content * `duration` - how long the item stays visible from entrance to exit * `scale` - final scale value (items animate in from `scale: 0` to this value) * `y` - the vertical position of the item * `onDone` - callback fired after the exit animation completes (in the included `example.tsx`, it’s used to remove the item from local state) This component uses `scheduleOnRN` from `react-native-worklets` to call `onDone` from the `UI Thread` but if you are have React Native Reanimated below v4, use `runOnJS` instead - there's a comment in the code inside `index.tsx`.

Import directly via AI Coding Agents

Use RafayLabs Animation MCP to search, adapt, and insert this animation into your screens automatically in Cursor, Claude Code, or VS Code.

Connect Animation MCP

Related UI Motion Components

More animations in Layout & Transitions

View All Animations →
QRCode scanner bounding box
Free ComponentLayout & Transitions

QRCode scanner bounding box

This component uses `expo-camera` to scan QR codes in real time and leverages `react-native-reanimated` to animate the bounding box that highlights detected codes on screen. The bounding box appears and moves smoothly using Reanimated's layout animations, enhancing the visual feedback for users.When a QR code is detected, the bounding box is dynamically rendered and animated into view. If no QR code is detected, the component gracefully hides the bounding box, either through animation or by not rendering it at all, depending on the state.This approach ensures a responsive and visually polished scanning experience, with minimal flicker or jank during detection transitions.

react native reanimatedexpo-cameraqrcode
Reanimated 4
Preview & Code
Animated tabs - Reanimated, Moti, Lucide Icons
Free ComponentLayout & Transitions

Animated tabs - Reanimated, Moti, Lucide Icons

Animated tabs using React Native Reanimated layout animations, `entering` & `exiting` animations, Moti to animate the Lucide Icons and `LayoutAnimationConfig` to skip the entering animation. We use `motifySvg` to be able to animate the svg icon colors, as well as `entering` and `exiting` from React Native Reanimated to control the animation for the tab labels. As a small UI/UX touch, we'll be using `LayoutAnimationConfig` from React Native Reanimated to `skipEntering` the tab label, in this way, on initial render, the label will not be animated.

react native tabsreact native reanimatedmicro interaction
Reanimated 4
Preview & Code
Awesome menu transition - React Native Moti
Free ComponentLayout & Transitions

Awesome menu transition - React Native Moti

Awesome menu transition - React Native Moti

react native animationsmenureact native moti
Reanimated 4
Preview & Code