Install react-native-ease
Import EaseView
Replace your
View import with EaseView:EaseView accepts all standard ViewProps — children, style, event handlers. You can use it anywhere you’d use a View.Add an animate prop
Pass target values to the Press the button — the view fades in and out. Without a
animate prop. When those values change, the view animates to them:transition prop, Ease defaults to timing with a 300ms easeInOut curve.Configure the transition
Use the The
transition prop to control how the animation plays:easing field accepts a preset name ('linear', 'easeIn', 'easeOut', 'easeInOut') or a [x1, y1, x2, y2] cubic bezier tuple:More examples
Fade and slide on mount
UseinitialAnimate to set starting values. On mount, the view starts at those values and animates to animate:
Scale on press
Staggered list entrance
Usedelay to stagger animations across multiple elements:
Animated background color
Key props at a glance
| Prop | What it does |
|---|---|
animate | Target values for animated properties. Changes trigger animations. |
initialAnimate | Starting values on mount. Animates to animate on first render. |
transition | Animation config: { type: 'timing' } or { type: 'spring' }. Defaults to timing 300ms. |
onTransitionEnd | Callback fired when all animations complete with { finished: boolean }. |
transformOrigin | Pivot point for scale/rotation as 0–1 fractions. Default: { x: 0.5, y: 0.5 }. |