Skip to main content
Version: 6.0.x

useSoftInputHidden

useSoftInputHidden is a shortcut for using AvoidSoftInput.onSoftInputHidden method inside useEffect.

Parameters

TypeRequiredDescription
() => voidyesfunction called when soft input is hidden

Example

import { useSoftInputHidden } from "react-native-avoid-softinput";

useSoftInputHidden(() => {
// Do sth
});