Fix no close animation of 2fa validate screen#52741
Conversation
|
@hungvu193 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] |
|
I think test is now required as a part of new PR. Can you also write the test for this PR? If not, why don't we need it? |
|
Ah I mean the unit test |
|
Oh, this requires a UI test which I'm not sure how to do, especially since we need to test that it animates correctly. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-20.at.14.23.13.movAndroid: mWeb ChromeScreen.Recording.2024-11-20.at.14.17.24.moviOS: NativeScreen.Recording.2024-11-20.at.14.14.35.moviOS: mWeb SafariScreen.Recording.2024-11-20.at.14.13.00.movMacOS: Chrome / SafariScreen.Recording.2024-11-20.at.14.05.42.movMacOS: DesktopScreen.Recording.2024-11-20.at.14.05.58.mov |
|
It works fine with back button on the header. But with back button from device I think It still don't have animation. Screen.Recording.2024-11-20.at.14.17.24.mov |
|
Fixed |
|
@hungvu193 over to you |
|
@bernhardoj Thanks. It's working. But it looks like we can reproduce this issue on every other screen that uses ValidateCodeAcitonModal. Would you mind to apply your recent change to other places. Idealy, we can create a hook and reuse it every where. |
|
little bump @bernhardoj |
|
Updated |
| @@ -0,0 +1,13 @@ | |||
| import {useNavigation} from '@react-navigation/native'; | |||
There was a problem hiding this comment.
cc @chrispader @adamgrzybowski will you need to make any changes to your PRs based on the changes in this PR?
There was a problem hiding this comment.
I dont think you should, but wanted to highlight
There was a problem hiding this comment.
No the Native Stack PR won't need any changes based on the changes in this PR
|
✋ 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.0.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.67-9 🚀
|

Explanation of Change
Handling the modal visibility state and hide it when the page is closed.
Fixed Issues
$ #52339
PROPOSAL: #52339 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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))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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4