title: How can I know when the mobile keyboard is open in React
body: <p>I have the Textfield below which has the Autofocus attribute,i want to know if there is a way to know when the keyboard is open in mobile view and store it in a boolean variable.</p>
  <p><a href="https://i.stack.imgur.com/z0EtB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z0EtB.png" alt="enter image description here" /></a></p>