Use ReanimatedModal for FULLSCREEN modals#64805
Conversation
…fullscreen modals
src/components/Modal/BaseModal.tsx
Outdated
| import type ModalProps from './ReanimatedModal/types'; | ||
| import type BaseModalProps from './types'; | ||
|
|
||
| const ReanimatedModalTypes: Array<ValueOf<typeof CONST.MODAL.MODAL_TYPE>> = [CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED, CONST.MODAL.MODAL_TYPE.FULLSCREEN]; |
There was a problem hiding this comment.
NAB: I think we should use camelCase here or CONST_CASE instead.
|
@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] |
|
It's funny that random assigned me here 😅 |
| > | ||
| <Animated.View | ||
| style={styles.modalAnimatedContainer} | ||
| style={[style, styles.modalAnimatedContainer]} |
There was a problem hiding this comment.
Interesting
Shouldn't this lead to issues due to the fact that we use style prop both in the wrapper and in the current component ?
There was a problem hiding this comment.
Haven't notice any. The reason for this was that modals that should take full height, animated view wasn't.
But I can probably do it a different way to limit potential side effects
There was a problem hiding this comment.
Yeah
I can't find any issue yet either
Maybe it's okay !
There was a problem hiding this comment.
Yeah, cos on the web it's just one container. AFAIR there were issues with exit animation and unmounting that's why there is an additional View on native. I pushed uglier, but more verbose way of doing it. Let me know which one you prefer :)
Have a strong feeling this will be refactored when on the next modal type anyways
There was a problem hiding this comment.
I think it looks good
And since we're going to refactor this in the future
Let's leave it as is !
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2025-06-30.18.49.17.movAndroid: mWeb Chrome2025-06-30.18.46.58.moviOS: HybridApp2025-06-30.18.37.59.moviOS: mWeb Safari2025-06-30.18.34.59.movMacOS: Chrome / Safari2025-06-27.19.10.53.movMacOS: Desktop2025-06-30.18.26.31.mov |
|
Videos looking good so far. Let us know if you want when you want a review :) |
|
@dubielzyk-expensify I think it's all done from my side here (depending on @ZhenjaHorbach review ofc) |
Good on my part too ! |
|
Minor comment Although never mind 2025-06-30.18.26.31.mov |
|
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.74-2 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.74-10 🚀
|
This PR uses
react-native-reanimatedbased modal forFULLSCREENtype modals.Same animations as in
BOTTOM_DOCKED_MODALare used (and same asFULLSCREENwas before):SlideIn/SlideOutfor nativeFadeIn/FadeOutfor webExplanation of Change
Fixed Issues
$ #64777
$ #64775
PROPOSAL:
https://expensify.slack.com/archives/C05LX9D6E07/p1750147058498549
Tests
Offline tests
Same as tests.
QA Steps
Same as tests.
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
0023.android.native.mov
Android: mWeb Chrome
0023.android.chrome.mov
iOS: Native
0023.ios.native.mp4
iOS: mWeb Safari
0023.ios.native.mp4
MacOS: Chrome / Safari
0023.desktop.web.mov
MacOS: Desktop
0023.desktop.native.mov