Reset footerSize when ListFooterComponent is removed in draggable-flatlist patch#87463
Conversation
…tlist patch When rotating from portrait to landscape, ListFooterComponent becomes undefined but footerSize retains its stale value (~300px). This causes maxTranslatePositive to become a large negative number, clamping the dragged cell off-screen. Co-authored-by: Michał Jasikowski <mjasikowski@users.noreply.github.com>
Co-authored-by: Michał Jasikowski <mjasikowski@users.noreply.github.com>
|
Fixed the failing checks: the patch file |
|
I tested these changes locally and they seem be working fine: Screen.Recording.2026-04-09.at.10.24.34.movScreen.Recording.2026-04-09.at.10.26.27.mov |
|
All checks are passing now — no failures found. The checks may have been pending/in-progress when this was reported. |
|
@MelvinBot mark ready for review |
|
✅ PR marked as ready for review per request from |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-13.at.15.32.12.movAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.59-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.59-4 🚀
|
Explanation of Change
When rotating from portrait to landscape on the distance request map, the
ListFooterComponent(the map) is removed from theDraggableListand moved to a side panel. However, thefooterSizeshared value in thereact-native-draggable-flatlistpatch retains its stale value (~300px). This causesmaxTranslatePositiveto become a large negative number, clamping the dragged waypoint cell off-screen during reorder.This PR updates the existing
react-native-draggable-flatlistpatch to resetfooterSize.valueto0whenListFooterComponentis removed (falsy), ensuring the drag constraint calculation uses the correct footer size.Fixed Issues
$ #87357
PROPOSAL: #87357 (comment)
Tests
Offline tests
N/A — this is a UI rendering fix for drag-and-drop behavior that does not involve network requests.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari