Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-detect-keyboard-open

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-detect-keyboard-open

a tiny React hook which allows you to track state of open/close soft keyboard in mobile

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.2K
increased by4.85%
Maintainers
1
Weekly downloads
 
Created
Source

use-detect-keyboard-open

sandbox

Edit smoosh-water-ysj3w

install

yarn add use-detect-keyboard-open

or

npm i use-detect-keyboard-open

See it in Action

example

import useDetectKeyboardOpen from "use-detect-keyboard-open";
export default function App() {
  const isKeyboardOpen = useDetectKeyboardOpen();
  return (
    <div>
      <h2>{`soft keyboard is ${isKeyboardOpen ? "open" : "close"}`}</h2>
      <input defaultValue="click here for open keyboard" />
    </div>
  );
}

options

useDetectKeyboardOpen( minKeyboardHighte , defalutValue )

  • defalutValue : boolean
    • for initial value
    • default null
    • optional
  • minKeyboardHighte : number
    • for minimom hight of keyboard for detect is open
    • default 300
    • optional

Keywords

FAQs

Package last updated on 14 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc