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>
|
@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.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
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