Keyboard height is wrong on some android devices (causing the keyboard to show over text inputs) #26461
Labels
API: Keyboard
Bug
Platform: Android
Android applications.
Ran Commands
One of our bots successfully processed a command.
Stale
There has been a lack of activity on this issue and it may be closed soon.
When the keyboard is show, the 'keyboardDidShow' event is fired.
We listen to it like this:
Keyboard.addListener('keyboardDidShow', this.handleKeyboardDidShow)
When it's fired, we start an Animated.Value that goes from 0 to -keyboardHeight to move the main view up (there are better ways to handle it, but that's not the point, I'm just trying to keep it simple here)
The main view is like:
It works on all iOS devices and it works on most Android devices, but on some Android devices, the event.endCoordinates.height value is wrong, causing the text input to be partially hidden.
This is a Huawei P20 Pro:
This is a Samsung A40:
How are we supposed to deal with that?
The text was updated successfully, but these errors were encountered: