Repository navigation
Conversation
An editor that sizes to its text inside a page leaves its caret under the keyboard: the page has to scroll, and only the editor knows where the caret row is. The core now computes that scroll from the caret row, the scroller's visible band, the keyboard's top raised by an offset and the range the scroller has left, so Android, iOS and the web share one rule.
A key row in a KeyboardStickyView covers the editor's bottom rows while the keyboard is up, and the only way to keep the caret clear of it was a contentInsets.bottom that also stays with the keyboard down. keyboardOffset raises the keyboard's top by that much while it is up. The prop reaches the Android, iOS and web views here, and negative values count as 0.
This was referenced Nov 29, 2026
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 29, 2026
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
an editor that sizes to its text inside a page leaves its caret under the keyboard. the page has to scroll, and only the editor knows where the caret row is. the core now computes that scroll from the caret row, the visible part of the scroller, the keyboard's top and the range the scroller has left, so Android, iOS and the web share one rule.
keyboardOffsetis for a key row in aKeyboardStickyView. it covers the editor's bottom rows while the keyboard is up, and the only way to keep the caret clear of it was acontentInsets.bottomthat also stays with the keyboard down. the prop raises the keyboard's top by that much while the keyboard is up, and negative values count as 0. this PR only passes it to the three views, the platform PRs use it.the web, Android and iOS PRs each sit on this one and can merge in any order, the docs PR goes last.
stacked on #44 (its own commits)