1- import HybridAppModule from '@expensify/react-native-hybrid-app' ;
21import { Str } from 'expensify-common' ;
32import React , { forwardRef , useEffect , useImperativeHandle , useRef , useState } from 'react' ;
43import type { ForwardedRef } from 'react' ;
@@ -22,7 +21,6 @@ import Performance from '@libs/Performance';
2221import Visibility from '@libs/Visibility' ;
2322import { setLocale } from '@userActions/App' ;
2423import { clearSignInData } from '@userActions/Session' ;
25- import CONFIG from '@src/CONFIG' ;
2624import CONST from '@src/CONST' ;
2725import ONYXKEYS from '@src/ONYXKEYS' ;
2826import ROUTES from '@src/ROUTES' ;
@@ -185,7 +183,6 @@ function SignInPage({shouldEnableMaxHeight = true}: SignInPageInnerProps, ref: F
185183 // We need to show "Another login page is opened" message if the page isn't active and visible
186184 // eslint-disable-next-line rulesdir/no-negated-variables
187185 const shouldShowAnotherLoginPageOpenedMessage = Visibility . isVisible ( ) && ! isClientTheLeader ;
188- const [ hybridApp ] = useOnyx ( ONYXKEYS . HYBRID_APP , { canBeMissing : true } ) ;
189186
190187 useEffect ( ( ) => Performance . measureTTI ( ) , [ ] ) ;
191188
@@ -306,15 +303,6 @@ function SignInPage({shouldEnableMaxHeight = true}: SignInPageInnerProps, ref: F
306303 navigateBack,
307304 } ) ) ;
308305
309- // This effect is closing OldDot sign out modal when SignInPage appears
310- // It can't be performed in any other place because there would be an empty screen for a while
311- useEffect ( ( ) => {
312- if ( ! CONFIG . IS_HYBRID_APP || ! hybridApp ?. loggedOutFromOldDot ) {
313- return ;
314- }
315- HybridAppModule . clearOldDotAfterSignOut ( ) ;
316- } , [ hybridApp ?. loggedOutFromOldDot ] ) ;
317-
318306 return (
319307 // Bottom SafeAreaView is removed so that login screen svg displays correctly on mobile.
320308 // The SVG should flow under the Home Indicator on iOS.
0 commit comments