useSoftInputAppliedOffsetChanged
useSoftInputAppliedOffsetChanged
is a shortcut for using AvoidSoftInput.onSoftInputAppliedOffsetChange
method inside useEffect
.
Parameters
Type | Required | Description |
---|---|---|
({ appliedOffset }: { appliedOffset: number }) => void | yes | function called during applying padding or translation with current applied value |
Example
import { useSoftInputAppliedOffsetChanged } from "react-native-avoid-softinput";
useSoftInputAppliedOffsetChanged(({ appliedOffset }) => {
// Do sth
});