Overview
Uniwind Pro integrates seamlessly withreact-native-reanimated (v4.0.0+) to provide CSS-like animations and transitions using Tailwind classes. Instead of using the style prop with Reanimated, you can use className to animate your components.
This includes CSS keyframe animations, property transitions, and Reanimated’s entering, exiting, and layout transition animations — all driven by class names.
Uniwind Pro requires Reanimated v4.0.0 or higher for animation support.
How It Works
When you use animation-related classes, Uniwind automatically:- Detects animation/transition properties in your
className(animate-*,transition-*, oruw-*classes) - Swaps the native component for its Reanimated equivalent (e.g.,
View→Animated.View) - For
animate-*andtransition-*classes — applies CSS animations via Reanimated’s CSS animation support - For
uw-entering-*,uw-exiting-*, anduw-layout-*classes — builds the corresponding Reanimated animation objects and passes them asentering,exiting, andlayoutprops
Keyframe Animations
Tailwind Built-in
Built-in Tailwind keyframe animations work out of the box:Custom Animations
Uniwind ships additional keyframe animations beyond what Tailwind provides. These are looping animations useful for drawing attention to elements or adding visual polish:Transitions
Animate property changes smoothly whenclassName or state changes:
Transition Classes
Duration
Timing Functions
Delay
Entering & Exiting Animations
Reanimated’s entering and exiting animations let you animate components as they mount and unmount. Uniwind lets you drive these entirely through class names — no imports fromreact-native-reanimated needed.
Use uw-entering-* to animate a component when it appears, and uw-exiting-* when it disappears:
entering and exiting props take priority over class names. This means you can use uw-* classes as defaults and override them with props when needed.
Entering Presets
Fade
Fade
Slide
Slide
Zoom
Zoom
Bounce
Bounce
Flip
Flip
Stretch
Stretch
Rotate
Rotate
Other
Other
Exiting Presets
Fade
Fade
Slide
Slide
Zoom
Zoom
Bounce
Bounce
Flip
Flip
Stretch
Stretch
Rotate
Rotate
Other
Other
Layout Transitions
Layout transitions animate the position and size changes of a component when its siblings are added or removed. They keep list reordering and grid changes looking smooth. Useuw-layout-* classes to apply them:
Layout Transition Presets
Grid Example
Layout transitions work well for grid layouts where items shift position:Animation Configuration
You can fine-tune entering, exiting, and layout animations with modifier classes. These control duration, delay, easing, and spring physics — all from yourclassName.
The pattern is uw-{type}-{modifier} where {type} is entering, exiting, or layout.
Duration
Controls how long the animation takes. Accepts preset values or arbitrary integers.Delay
Adds a delay before the animation starts.Easing
Sets the timing function for the animation.Spring Physics
For spring-based animations, enable springify and optionally configure damping, stiffness, and mass. These accept arbitrary numeric values.Replace
{type} with entering, exiting, or layout depending on which animation phase you want to configure. Each phase is configured independently, so you can have a slow entering animation and a fast exiting animation on the same component.Using Reanimated Directly
If you need more control than class names provide, you can use Reanimated’sAnimated.* components directly with Uniwind classes. The entering, exiting, and layout props accept Reanimated animation objects as usual:
entering or exiting prop directly to override the class-name-driven animation:
Components Supporting Animations
These components automatically switch to Reanimated versions whenanimate-*, transition-*, or uw-* animation classes are detected:
All of these components accept
entering, exiting, and layout props when animation classes are present. You can also pass these props directly without any uw-* classes — the component will be upgraded to its Reanimated version automatically.
Practical Examples
Animated Button
Interactive Card
Disabled State with Transition
Loading Spinner
Animated List with Reordering
Related
Shadow Tree Updates
Learn how Uniwind Pro updates views without re-renders
Theme Transitions
Add smooth animated transitions when switching themes