Skip to content

Commit 98503fe

Browse files
authored
Merge pull request Expensify#65221 from Krishna2323/krishna2323/issue/64914
2 parents 74c2249 + 8954949 commit 98503fe

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/Lottie/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props
9494
// we'll just render an empty view as the fallback to prevent
9595
// 1. heavy rendering, see issues: https://github.com/Expensify/App/issues/34696 and https://github.com/Expensify/App/issues/47273
9696
// 2. lag on react navigation transitions, see issue: https://github.com/Expensify/App/issues/44812
97-
if (isError || appState.isBackground || !animationFile || splashScreenState !== CONST.BOOT_SPLASH_STATE.HIDDEN || (!isInteractionComplete && shouldLoadAfterInteractions)) {
97+
if (
98+
isError ||
99+
appState.isBackground ||
100+
!animationFile ||
101+
splashScreenState !== CONST.BOOT_SPLASH_STATE.HIDDEN ||
102+
((!isInteractionComplete || hasNavigatedAway) && shouldLoadAfterInteractions)
103+
) {
98104
return (
99105
<View
100106
style={[aspectRatioStyle, props.style]}

src/components/Section/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function Section({
159159
webStyle={styles.h100}
160160
autoPlay
161161
loop
162+
shouldLoadAfterInteractions={shouldUseNarrowLayout}
162163
/>
163164
) : (
164165
<ImageSVG

0 commit comments

Comments
 (0)