Migrate BusinessTypeSelectorModal to use Reanimated modal#67249
Conversation
|
@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-31.10.34.28.movAndroid: mWeb Chrome2025-07-23.12.55.15.moviOS: HybridAppios.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safariweb.movMacOS: Desktopweb.mov |
| useNativeDriver | ||
| onBackdropPress={() => { | ||
| onClose(); | ||
| Navigation.dismissModal(); |
There was a problem hiding this comment.
Just thinking
Do we really need Navigation.dismissModal(); here ?
Since now when we press to backdrop we close RHP completely
In main we return to the previous screen
2025-07-31.10.54.52.mov
There was a problem hiding this comment.
I remember this 😅
But for me it's a bit of a specific flow
That after every press to backdrop I have to Continue setup
And these are unnecessary actions
But maybe for consistency it's ok !
|
LGTM ! |
|
Congrats, that's your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It's an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
✋ 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.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|
Explanation of Change
The code migrates BusinessTypeSelectorModal to use the new ReanimatedModal instead of the ReactNativeModal.
This PR is a fixed PR #66811 that was reversed due to #67015. To ensure this issue does not occur, perform the testing steps on android app and check that the field error is not triggered for company type after selecting the company type option.
Fixed Issues
$ #64778
Tests
The modal is rather hard to access and requires logging into bank account or manually providing one's bank info so to skip this process (skip points 8-14) you can modify the code as presented in points 1-2 (note that modifying these lines disables the back button from the panel you skip to).
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-29.at.11.34.53.mov
Android: mWeb Chrome
Screen.Recording.2025-07-29.at.13.18.49.mov
iOS: Native
Screen.Recording.2025-07-29.at.13.29.05.mov
iOS: mWeb Safari
Screen.Recording.2025-07-29.at.13.26.21.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-29.at.13.16.22.mov
MacOS: Desktop
Screen.Recording.2025-07-29.at.13.33.56.mov