-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Drop FlashList hidden-render workaround using initial scroll index #90218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rlinoz
merged 16 commits into
Expensify:main
from
callstack-internal:VickyStash/refactor/89768-drop-list-workaround-using-initialScrollIndex
May 18, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c9095c7
Remove hidden-render workaround
VickyStash 1c67e23
Fix with initialScrollIndex
VickyStash 2a84ba2
Merge branch 'main' into test-fix-initialScrollIndex
VickyStash 770bb46
Fix jump on the initial data load
VickyStash 952bebc
Patch flash-list: bump applyInitialScrollIndex pause to 500ms
VickyStash 6f7ef2f
Spell fix
VickyStash a0a1520
Merge branch 'main' into VickyStash/refactor/89768-drop-list-workarou…
VickyStash b6c2319
Clean up after conflicts resolution
VickyStash 8384aea
Replace display approach to fix issue with messages display offline
VickyStash 8fadbc0
Fix auto-scroll logic to escape jumps for new messages
VickyStash 1faa626
Fix bug
VickyStash 27592a9
Add comment
VickyStash 221d809
Merge branch 'main' into VickyStash/refactor/89768-drop-list-workarou…
VickyStash b4a8a9d
Merge branch 'main' into VickyStash/refactor/89768-drop-list-workarou…
VickyStash 5180b7b
Re-apply changes after merging main
VickyStash 7981b0f
Fix overlap of initialScrollKey/shouldBeAlignedToTop logic
VickyStash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
patches/@shopify/flash-list/@shopify+flash-list+2.3.0+008+increase-timeout.patch
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/node_modules/@shopify/flash-list/dist/recyclerview/hooks/useRecyclerViewController.js b/node_modules/@shopify/flash-list/dist/recyclerview/hooks/useRecyclerViewController.js | ||
| index 51b6f8c..d4ca252 100644 | ||
| --- a/node_modules/@shopify/flash-list/dist/recyclerview/hooks/useRecyclerViewController.js | ||
| +++ b/node_modules/@shopify/flash-list/dist/recyclerview/hooks/useRecyclerViewController.js | ||
| @@ -507,7 +507,7 @@ export function useRecyclerViewController(recyclerViewManager, ref, scrollViewRe | ||
| setTimeout(() => { | ||
| recyclerViewManager.isInitialScrollComplete = true; | ||
| pauseOffsetCorrection.current = false; | ||
| - }, 100); | ||
| + }, 500); | ||
| pauseOffsetCorrection.current = true; | ||
| const additionalOffset = (_c = initialScrollIndexParams === null || initialScrollIndexParams === void 0 ? void 0 : initialScrollIndexParams.viewOffset) !== null && _c !== void 0 ? _c : 0; | ||
| const offset = horizontal | ||
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
17 changes: 0 additions & 17 deletions
17
src/pages/inbox/report/StaticReportActionsPreview/index.native.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/pages/inbox/report/StaticReportActionsPreview/index.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
src/pages/inbox/report/getReportActionsListInitialNumToRender.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
@VickyStash All good, I only have one concern about this patch. Could you detail what bug occurs without this change?
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.
@DylanDylann There is a content jump on iOS (maybe on other platforms too, but the easiest way to catch it is on ios) without the patch.
Without the patch:
without_patch.mov
With the patch:
with_patch.mov
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.
Thanks for sharing