feat: expose isAtEnd shared value from KeyboardChatScrollView#1431
Open
jkinggg wants to merge 1 commit intokirillzyusko:mainfrom
Open
feat: expose isAtEnd shared value from KeyboardChatScrollView#1431jkinggg wants to merge 1 commit intokirillzyusko:mainfrom
isAtEnd shared value from KeyboardChatScrollView#1431jkinggg wants to merge 1 commit intokirillzyusko:mainfrom
Conversation
Owner
|
Hey @jkinggg Is it final PR? Can we move it to "ready for review" stage? |
jkinggg
commented
Apr 17, 2026
Author
jkinggg
left a comment
There was a problem hiding this comment.
Hey @kirillzyusko this is ready
Contributor
📊 Package size report
|
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.
📜 Description
This PR adds an optional
isAtEnd?: SharedValue<boolean>prop toKeyboardChatScrollView.When provided, the component updates that shared value on the UI thread using the same internal scroll metrics and
isScrollAtEnd(...)logic already used bykeyboardLiftBehavior="whenAtEnd".The goal is to let chat-style apps build jump-to-latest / scroll-to-bottom affordances without reimplementing the component's internal "at end" logic in app code.
💡 Motivation and Context
This change is intended to solve a common gap in chat UIs:
That duplication is brittle because app-side heuristics can diverge from the component's own keyboard-aware behavior.
This PR keeps the API small by exposing the semantic state (
isAtEnd) instead of lower-level raw scroll metrics.Related issue: #1430
📢 Changelog
JS
isAtEnd?: SharedValue<boolean>prop toKeyboardChatScrollViewisAtEndon the UI thread using existingisScrollAtEnd(...)logiciOS
Android
🤔 How Has This Been Tested?
Validated in the fork clone with:
yarn typescriptyarn lint src/components/KeyboardChatScrollView/index.tsx src/components/KeyboardChatScrollView/types.tsNot yet completed before opening this draft PR:
yarn test📸 Screenshots (if appropriate):
No screenshots yet. This draft PR is mainly to support API discussion from #1430.
📝 Checklist