Repository navigation
Keep an Android list where it was scrolled to when selecting - #1818
Merged
Merged
Conversation
On Android a scroll view with pull to refresh sits inside the refresh control, so removing the control in selection mode mounted a new scroll view at the top, under rows still laid out for the old position: blank space above the list. Android now keeps the control and turns it off while selecting or reordering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Requested by Rui · project thread
What
On Android, scrolling a notice, assignment or file list down and then tapping Select left blank space above the list.
Why
React Native's Android
ScrollViewwith arefreshControlrenders the scroll view inside the refresh control (AndroidSwipeRefreshLayout).FilterListremoved the refresh control while selecting or reordering, so the element tree changed and a new native scroll view mounted at offset 0, while FlashList kept its rows laid out for the old offset. The space above them showed blank.Change
Android keeps the refresh control mounted in every mode and turns pull to refresh off with
enabled={false}while selecting or reordering. iOS and the Electron app still drop the control, as before (on iOS it is a child of the scroll view, so removing it doesn't remount anything). The Mac still has none.Tests
FilterListtest: on Android the control stays the same element through select mode, withenabledoff and back on. It fails without the fix.pnpm typecheck,pnpm lint,pnpm format --check, and the iOS Jest project pass.Generated by Claude Code