Skip to content

Report keyboard show notifications with an empty frame as hide events (#59559) - #59559

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
ybcd00:export-D127272268
Oct 28, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
ybcd00:export-D127272268

Conversation

@ybcd00

@ybcd00 ybcd00 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

When a foldable iPhone is folded, unfolded or rotated, iOS can send a "keyboard will show" notification for a keyboard with zero height while no text field is focused. RCTKeyboardObserver passed it to JS as a show, so screens acted as if a keyboard were open: inputs stayed in their keyboard-up position and some pages went blank.

Now a zero-height show with no focused text field is sent as a hide. Everything else is unchanged, including hardware keyboards on iPad, which send zero-height shows while a field is focused.

Changelog:
[iOS][Fixed] - Report zero-height keyboard show notifications with no focused text field as keyboardWillHide/keyboardDidHide

Reviewed By: cipolleschi

Differential Revision: D127272268

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 27, 2026
@meta-codesync

meta-codesync Bot commented Oct 27, 2026

Copy link
Copy Markdown

@ybcd00 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D127272268.

@meta-codesync meta-codesync Bot changed the title Report keyboard show notifications with an empty frame as hide events Report keyboard show notifications with an empty frame as hide events (#59559) Oct 27, 2026
ybcd00 added a commit to ybcd00/react-native that referenced this pull request Oct 27, 2026
…react#59559)

Summary:

When a foldable iPhone is folded, unfolded or rotated, iOS can send a "keyboard will show" notification for a keyboard with zero height while no text field is focused. `RCTKeyboardObserver` passed it to JS as a show, so screens acted as if a keyboard were open: inputs stayed in their keyboard-up position and some pages went blank.

Now a zero-height show with no focused text field is sent as a hide. Everything else is unchanged, including hardware keyboards on iPad, which send zero-height shows while a field is focused.

Changelog:
[iOS][Fixed] - Report zero-height keyboard show notifications with no focused text field as `keyboardWillHide`/`keyboardDidHide`

Reviewed By: cipolleschi

Differential Revision: D127272268
@ybcd00
ybcd00 force-pushed the export-D127272268 branch from 2048ff4 to 7a1cbd0 Compare October 27, 2026 23:56
ybcd00 added a commit to ybcd00/react-native that referenced this pull request Oct 28, 2026
…react#59559)

Summary:

When a foldable iPhone is folded, unfolded or rotated, iOS can send a "keyboard will show" notification for a keyboard with zero height while no text field is focused. `RCTKeyboardObserver` passed it to JS as a show, so screens acted as if a keyboard were open: inputs stayed in their keyboard-up position and some pages went blank.

Now a zero-height show with no focused text field is sent as a hide. Everything else is unchanged, including hardware keyboards on iPad, which send zero-height shows while a field is focused.

Changelog:
[iOS][Fixed] - Report zero-height keyboard show notifications with no focused text field as `keyboardWillHide`/`keyboardDidHide`

Reviewed By: cipolleschi

Differential Revision: D127272268
@ybcd00
ybcd00 force-pushed the export-D127272268 branch from 7a1cbd0 to 5211d97 Compare October 28, 2026 00:19
…react#59559)

Summary:

When a foldable iPhone is folded, unfolded or rotated, iOS can send a "keyboard will show" notification for a keyboard with zero height while no text field is focused. `RCTKeyboardObserver` passed it to JS as a show, so screens acted as if a keyboard were open: inputs stayed in their keyboard-up position and some pages went blank.

Now a zero-height show with no focused text field is sent as a hide. Everything else is unchanged, including hardware keyboards on iPad, which send zero-height shows while a field is focused.

Changelog:
[iOS][Fixed] - Report zero-height keyboard show notifications with no focused text field as `keyboardWillHide`/`keyboardDidHide`

Reviewed By: cipolleschi

Differential Revision: D127272268
@ybcd00
ybcd00 force-pushed the export-D127272268 branch from 5211d97 to 9634628 Compare October 28, 2026 01:52
@meta-codesync
meta-codesync Bot merged commit c99947e into react:main Oct 28, 2026
29 of 30 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @ybcd00 in c99947e

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants