Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 864 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 864 Bytes

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 💖.