-
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
Prevent Lottie from running in the background after navigating to other pages #47960
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-26.at.23.24.57.mp4Android: mWeb ChromeScreen.Recording.2024-08-26.at.23.23.21.mp4iOS: NativeScreen.Recording.2024-08-26.at.23.24.11.mp4iOS: mWeb SafariScreen.Recording.2024-08-26.at.23.22.09.mp4MacOS: Chrome / SafariScreen.Recording.2024-08-26.at.23.17.35.mp4MacOS: DesktopScreen.Recording.2024-08-26.at.23.21.04.mp4 |
Co-authored-by: Cong Pham <ptcong411@gmail.com>
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.
LGTM
@suneox @aldo-expensify Could we pause the review for now? RN was upgraded to 0.75 less than an hour ago, which is a major change. I need to retest on all platforms tomorrow to be safe. |
@suneox @aldo-expensify Retested and found no major differences after merging the Screenshots/VideosAndroid: Nativeandroid-native.mp4Android: mWeb Chromeandroid-web.mp4iOS: Nativeios-native.mp4iOS: mWeb Safariios-web.mp4MacOS: Chrome / Safarimac-chrome.movMacOS: Desktopmac-desktop.mov |
✋ 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/aldo-expensify in version: 9.0.26-1 🚀
|
We reverted this PR because it caused a deploy blocker that caused an App crash #48283 |
@QichenZhu Could you please investigate the blocker issue? |
@suneox Oops, my bad. Didn't realize |
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.26-6 🚀
|
@QichenZhu Can you reproduce #48262 on latest main with current solution? |
@suneox Yes, I can still reproduce it. |
const state = navigation.getState(); | ||
const targetRouteName = state?.routes?.[state?.index ?? 0]?.name; | ||
if (targetRouteName !== NAVIGATORS.RIGHT_MODAL_NAVIGATOR) { | ||
setIsHidden(true); |
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.
This change causes an issue where assets are hidden during the screen transition, and in some cases, if the transition is slow, users may briefly see a blank view.
Details
Fixed Issues
$ #47273
PROPOSAL: #47273 (comment)
Tests
Expected result: The animation in the Settings tab should work, and the right-side modal should open.
Offline tests
Expected result: The animation in the Settings tab should work, and the right-side modal should open.
QA Steps
Expected result: The animation in the Settings tab should work, and the right-side modal should open.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
1000016986-2024-08-26.15_27_41.500.mp4
Android: mWeb Chrome
1000016984-2024-08-26.15_27_59.290.mp4
iOS: Native
ios-native.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
mac-chrome.mov
MacOS: Desktop
mac-desktop.mov