How to detect when keyboard is opened or closed in React Native : <p>How to detect if user close the keyboard in react native, I want to call a function when user closed the keyboard.</p>

<p>and if you can answer to detect keyboard is open too it will be appreciated, thanks. </p>

<p>I'm on the react native latest <code>version 0.56</code></p>
