When a component uses useKeyboard() and this component is mounted while the keyboard is open, useKeyboard().keyboardShown returns false.
The background is we have a sticky button at the bottom on multiple screens. This button should not be displayed when the keyboard is open, since it takes away too much space. In one of those screens we only show the button after an text-input is made. At this point the keyboard is open and the button is shown because of the error above.
When a component uses
useKeyboard()and this component is mounted while the keyboard is open,useKeyboard().keyboardShownreturns false.The background is we have a sticky button at the bottom on multiple screens. This button should not be displayed when the keyboard is open, since it takes away too much space. In one of those screens we only show the button after an text-input is made. At this point the keyboard is open and the button is shown because of the error above.