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

Target Dependencies & Architecture

moti@^0.29.0react-native-reanimated@~4.1.0
Layout & Transitions

Dynamic task color assignment animation

react native animationscolor interpolationreact native layoutmicro interaction

Interaction & Gesture Mechanics

Dynamic task color assignment animation

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 →
Announcements - React Native Reanimated Custom Layout Animation
Free ComponentLayout & Transitions

Announcements - React Native Reanimated Custom Layout Animation

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`.

layout animationreact native animationsreact native reanimated
Reanimated 4
Preview & Code
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