diff --git a/src/components/CustomStatusBar/index.tsx b/src/components/CustomStatusBar/index.tsx index 2a8b15642307..6c6a38119aa9 100644 --- a/src/components/CustomStatusBar/index.tsx +++ b/src/components/CustomStatusBar/index.tsx @@ -68,7 +68,7 @@ const CustomStatusBar: CustomStatusBarType = ({isNested = false}) => { navigationRef.addListener('state', updateStatusBarStyle); return () => navigationRef.removeListener('state', navigationStateListener); - }, [navigationStateListener]); + }, [updateStatusBarStyle]); useEffect(() => { if (isDisabled) {