-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix no close animation of 2fa validate screen #52741
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think you should, but wanted to highlight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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