setEasing
Use setEasing
method, to customize animation's easing, available values are easeIn
, easeInOut
, easeOut
and linear
.
Parameters
Type | Required | Description |
---|---|---|
easeIn or easeInOut or easeOut or linear | yes | animation's easing |
Example
import { AvoidSoftInput } from "react-native-avoid-softinput";
AvoidSoftInput.setEasing("easeInOut"); // Changes animation's easing to `easeInOut` curve