Skip to content

Commit

Permalink
Exclude left side modal
Browse files Browse the repository at this point in the history
  • Loading branch information
QichenZhu committed Sep 10, 2024
1 parent 2e03f4b commit 10af7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Lottie/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import useAppState from '@hooks/useAppState';
import useNetwork from '@hooks/useNetwork';
import useThemeStyles from '@hooks/useThemeStyles';
import * as Browser from '@libs/Browser';
import isSideModalNavigator from '@libs/Navigation/isSideModalNavigator';
import CONST from '@src/CONST';
import NAVIGATORS from '@src/NAVIGATORS';
import {useSplashScreenStateContext} from '@src/SplashScreenStateContext';

type Props = {
Expand Down Expand Up @@ -55,7 +55,7 @@ function Lottie({source, webStyle, ...props}: Props, ref: ForwardedRef<LottieVie
const unsubscribeNavigationBlur = navigator.addListener('blur', () => {
const state = navigationContainerRef.getRootState();
const targetRouteName = state?.routes?.[state?.index ?? 0]?.name;
if (targetRouteName !== NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
if (!isSideModalNavigator(targetRouteName)) {
setHasNavigatedAway(true);
}
});
Expand Down

0 comments on commit 10af7f9

Please sign in to comment.