Skip to main content
Version: 5.0.x

onSoftInputHidden

Use onSoftInputHidden method, if you want to listen to events when soft input is hidden.

Parameters

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

Example

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

const unsubscribe = AvoidSoftInput.onSoftInputHidden(() => {
// Do sth
});

// later invoke unsubscribe.remove()