I am trying to track the opening of the keyboard in order to perform some actions when opening it.
I used various methods for example:
Keyboard.addListener('keyboardWillShow', info => {
});
Keyboard.addListener('keyboardDidShow', info => {
});
But for some reason, keyboardWillShow and keyboardDidShow are triggered not when the keyboard is opened, but when it is closed or when you start typing something into the input. Why can there be such a strange behavior?