react-native-ease and map directly to CABasicAnimation on iOS and ObjectAnimator on Android.
Parameters
Easing Presets
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.