useSoftInputHidden
useSoftInputHidden
is a shortcut for using AvoidSoftInput.onSoftInputHidden
method inside useEffect
.
Parameters
Type | Required | Description |
---|---|---|
() => void | yes | function called when soft input is hidden |
Example
import { useSoftInputHidden } from "react-native-avoid-softinput";
useSoftInputHidden(() => {
// Do sth
});