Ignore non visible keyboard in KeyboardView.find() method.
💡 Motivation and Context
Sometimes we may have two keyboards:
And the current algorithm for a search returns an invalid keyboard (not a one that is actually shown on the screen):
or
But when actual keyboard is tracked, then the frame of this keyboard has non-zero height:
So to fix the problem with invalid keyboard view being found I decided to modify a condition and add additional condition to check that frame.height != 0.
📜 Description
Ignore non visible keyboard in
KeyboardView.find()
method.💡 Motivation and Context
Sometimes we may have two keyboards:
And the current algorithm for a search returns an invalid keyboard (not a one that is actually shown on the screen):
or
But when actual keyboard is tracked, then the frame of this keyboard has non-zero height:
So to fix the problem with invalid keyboard view being found I decided to modify a condition and add additional condition to check that
frame.height != 0
.Follow up for https://github.com/kirillzyusko/react-native-keyboard-controller/pull/471 and https://github.com/kirillzyusko/react-native-keyboard-controller/issues/338#issuecomment-2163904827
📢 Changelog
iOS
height == 0
;🤔 How Has This Been Tested?
Tested on CI (e2e tests).
📝 Checklist