use-detect-keyboard-open
use-detect-keyboard-open copied to clipboard
a tiny React hook which allows you to track state of open/close soft keyboard in mobile
 ### Snyk has created this PR to fix 8 vulnerabilities in the yarn dependencies of this project. #### Snyk changed the following file(s): - `package.json` #### Note for [zero-installs](https://yarnpkg.com/features/zero-installs)...
 ### Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project. #### Snyk changed the following file(s): - `package.json` #### Note for [zero-installs](https://yarnpkg.com/features/zero-installs)...
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of...
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of...
The Safari browser doesn't produce 'resize' event when keyboard is shown, thus the hook is not working on iOS devices :((
Tested on MacOS and Ubuntu. I have component: ``` export function _Menu() { const isKeyboardOpen = useDetectKeyboardOpen() return ( // ... ) } ``` result: [screen record 16.05.2023 13:14:14.webm](https://github.com/straxico/use-detect-keyboard-open/assets/43857268/269ecfdc-7706-4829-856a-1d021a07588b) [screen...