-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let ScrollView Know About Keyboard Opened Before Mount
Summary: ScrollView has special behavior when the keyboard is open, but starts listening to keyboard events on mount. This means a ScrollView mounted after the keyboard is already up (e.g. for a typeahead) is not initialized to the keyboard being up. This change adds `Keyboard.isVisible()` and `Keyboard.metrics()` APIs to allow seeding initial keyboard metrics. Changelog: [General][Fixed] - Inform ScrollView of Keyboard Events Before Mount Reviewed By: JoshuaGross, yungsters Differential Revision: D38701976 fbshipit-source-id: 42b354718fbf5001ca4b90de0442eeab0be91e7a
- Loading branch information
1 parent
9e4114a
commit 26d1480
Showing
3 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26d1480
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update is causing issues when automaticallyAdjustKeyboardInsets is used on ScrollViews with inputAccessoryView to display static input (only versions below 16, works fine on iOS 16)
26d1480
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the implementation for
automaticallyAdjustKeyboardInsets
looks to all be in native. I can't see how it would depend on these values. What led you to this specific change as causing the issue?26d1480
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i downgrade version to 0.70 everything works fine. And that’s the only change that I see which could affect scrollView