Skip to main content
Version: 4.0.x

useSoftInputState

useSoftInputState returns object with properties determining whether soft input is shown and how much screen it covers.

Return value

{ isSoftInputShown: boolean, softInputHeight: number }

Example

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

const { isSoftInputShown, softInputHeight } = useSoftInputState();