/use-mobile-keyboard-visibility

⌨️ React hook for subscribing to mobile keyboard visibility!

Primary LanguageJavaScriptMIT LicenseMIT

use-mobile-keyboard-visibility

React hook for subscribing to window size!

build platform stars license

basic-merchandising

Install

yarn add use-mobile-keyboard-visibility

Usage

import useMobileKeyboardVisibililty from 'use-mobile-keyboard-visibility'

function MyComponent() {
  const minimumKeyboardHeight = 100
  let isKeyboardVisible = useMobileKeyboardVisibililty(minimumKeyboardHeight)
  console.log(isKeyboardVisible)

  // ...
}

Contributors

Special thanks to Fernanda Almeida, whom thoroughly tested this package 💖.