From 8954949a92551ef78a5ae69147fc9b525a668b64 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Tue, 1 Jul 2025 07:20:54 +0530 Subject: [PATCH] fix: Expensify card - Connect bank account RHP does not open smoothly. Signed-off-by: krishna2323 --- src/components/Lottie/index.tsx | 8 +++++++- src/components/Section/index.tsx | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Lottie/index.tsx b/src/components/Lottie/index.tsx index d75a0907afe4..09ba8802130a 100644 --- a/src/components/Lottie/index.tsx +++ b/src/components/Lottie/index.tsx @@ -94,7 +94,13 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props // we'll just render an empty view as the fallback to prevent // 1. heavy rendering, see issues: https://github.com/Expensify/App/issues/34696 and https://github.com/Expensify/App/issues/47273 // 2. lag on react navigation transitions, see issue: https://github.com/Expensify/App/issues/44812 - if (isError || appState.isBackground || !animationFile || splashScreenState !== CONST.BOOT_SPLASH_STATE.HIDDEN || (!isInteractionComplete && shouldLoadAfterInteractions)) { + if ( + isError || + appState.isBackground || + !animationFile || + splashScreenState !== CONST.BOOT_SPLASH_STATE.HIDDEN || + ((!isInteractionComplete || hasNavigatedAway) && shouldLoadAfterInteractions) + ) { return ( ) : (