Migrate TravelUpgrade to use Reanimated modal - #66733
Conversation
|
Type check tests fail due to a current issue with the main branch (will be fixed soon): |
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2025-07-21.11.46.54.movAndroid: mWeb Chrome2025-07-21.11.48.41.moviOS: HybridApp2025-07-21.11.43.45.moviOS: mWeb Safari2025-07-21.11.45.59.movMacOS: Chrome / Safariweb.movMacOS: Desktop2025-07-21.11.53.05.mov |
| useNativeDriver | ||
| onBackdropPress={Navigation.dismissModal} | ||
| onBackdropPress={() => { | ||
| onClose?.(); |
There was a problem hiding this comment.
I suppose onClose can't be optional here
So we can use just onClose() !
There was a problem hiding this comment.
And could you clarify please why we added onClose here ?
There was a problem hiding this comment.
I suppose onClose can't be optional here So we can use just onClose() !
You're absolutely right. Fixed it just now.
There was a problem hiding this comment.
And could you clarify please why we added onClose here ?
This is a temporary fix for the navigation related problem, mentioned in the PR:
#66146
It makes the modal that only mimics the RHP (doesn’t have its own URL) invisible as intended when exiting both modals. It ensures that both modals close with an animation when clicking backdrop.
There was a problem hiding this comment.
Oh
Okay
Thanks for the explanation !
|
LGTM ! |
|
✋ 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/mountiny in version: 9.1.84-1 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.84-4 🚀
|
Explanation of Change
The code migrates TravelUpgrade to use the new ReanimatedModal instead of the ReactNativeModal.
Fixed Issues
$ #64778
Tests
(These lines are the same as lines 111-112 in the unchanged file)
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2025-07-18.at.17.56.33.mov
Android: mWeb Chrome
Screen.Recording.2025-07-18.at.17.51.34.mov
iOS: Native
Screen.Recording.2025-07-18.at.16.23.06.mov
iOS: mWeb Safari
Screen.Recording.2025-07-18.at.16.27.06.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-18.at.15.44.29.mov
MacOS: Desktop
Screen.Recording.2025-07-18.at.16.03.41.mov