You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On an Android tablet (API 25+), enter split-screen mode (long press the square in the bottom thing), and drag to resize the react-native view smaller. Everytime the view goes from taller to shorter, both keyboard events fire.
Expected Behavior
Since there's no keyboard on the screen, and no input that could potentially trigger one, I wouldn't expect any keyboard events to be published.
Actual Behavior
Keyboard events are fired when no keyboard is in sight.
Note the console logs for keyboard events in the debugger.
I suspect it's due to ReactRootView checking to see if the screen size shrunk by at least the height of a keyboard (which in this case it did), and it thinks that the viewport change was caused by a keyboard poping up.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
stalebot
added
the
Stale
There has been a lack of activity on this issue and it may be closed soon.
label
Dec 26, 2017
Is this a bug report?
Yes.
Have you read the Contributing Guidelines?
Yes.
Environment
Environment:
Packages: (wanted => installed)
Target Platform: Android (API >= 25)
Steps to Reproduce
keyboardDidShow
andkeyboardDidHide
:Expected Behavior
Actual Behavior
Note the console logs for keyboard events in the debugger.
I suspect it's due to ReactRootView checking to see if the screen size shrunk by at least the height of a keyboard (which in this case it did), and it thinks that the viewport change was caused by a keyboard poping up.
ReactRootView.java#checkForKeyboardEvents
Reproducible Demo
https://snack.expo.io/rkKcJ1W0W
-- or --
https://gist.github.com/adierkens/f7ea7c7dbd6b9da18b9fc6f2b2e0a664
Note: split screen mode is only API 25+, since the snack preview only supports 21 and 22, the preview doesn't exhibit the bug behavior.
The text was updated successfully, but these errors were encountered: