diff --git a/src/components/CustomStatusBar/index.tsx b/src/components/CustomStatusBar/index.tsx index 6c6a38119aa9..2e4994378264 100644 --- a/src/components/CustomStatusBar/index.tsx +++ b/src/components/CustomStatusBar/index.tsx @@ -67,7 +67,7 @@ const CustomStatusBar: CustomStatusBarType = ({isNested = false}) => { useEffect(() => { navigationRef.addListener('state', updateStatusBarStyle); - return () => navigationRef.removeListener('state', navigationStateListener); + return () => navigationRef.removeListener('state', updateStatusBarStyle); }, [updateStatusBarStyle]); useEffect(() => { diff --git a/src/styles/themes/types.ts b/src/styles/themes/types.ts index 05306b4f7565..c674b6057d0f 100644 --- a/src/styles/themes/types.ts +++ b/src/styles/themes/types.ts @@ -1,4 +1,4 @@ -import {ColorScheme, StatusBarStyle} from '@styles/styles'; +import {type ColorScheme, type StatusBarStyle} from '@styles/styles'; import CONST from '@src/CONST'; type Color = string;