Timing animations transition from one value to another over a fixed duration with an easing curve. They are the default animation type inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AppAndFlow/react-native-ease/llms.txt
Use this file to discover all available pages before exploring further.
react-native-ease and map directly to CABasicAnimation on iOS and ObjectAnimator on Android.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
type | 'timing' | — | Selects timing animation |
duration | number | 300 | Duration in milliseconds |
easing | EasingType | 'easeInOut' | Easing curve — preset name or [x1, y1, x2, y2] cubic bezier |
delay | number | 0 | Delay in milliseconds before the animation starts |
loop | 'repeat' | 'reverse' | — | 'repeat' restarts from the beginning, 'reverse' alternates direction |
Easing Presets
| Value | Behavior | Cubic bezier |
|---|---|---|
'linear' | Constant speed | [0, 0, 1, 1] |
'easeIn' | Starts slow, accelerates | [0.42, 0, 1, 1] |
'easeOut' | Starts fast, decelerates | [0, 0, 0.58, 1] |
'easeInOut' | Slow start and end, fast middle (default) | [0.42, 0, 0.58, 1] |
Custom Cubic Bezier
Pass a[x1, y1, x2, y2] tuple for a custom easing curve. The values correspond to the two control points of the bezier curve and match the CSS cubic-bezier() function exactly.
- x-values (
x1,x2) must be between0and1 - y-values (
y1,y2) can exceed0–1to produce overshoot or anticipation effects
Examples
Basic timing fade
Material Design standard easing
Overshoot easing
Y-values outside0–1 produce overshoot. The curve below creates a spring-like snap past the target before settling.