use-mobile-keyboard-visibility
v1.3.8
Published
React hook for subscribing to mobile keyboard visibility
Downloads
5
Maintainers
Readme
use-mobile-keyboard-visibility
React hook for subscribing to window size!
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 💖.