File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/CustomStatusBarAndBackground Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ function CustomStatusBarAndBackground({isNested = false}: CustomStatusBarAndBack
6060 // Updates the status bar style and background color depending on the current route and theme
6161 // This callback is triggered everytime the route changes or the theme changes
6262 const updateStatusBarStyle = useCallback (
63- ( listenerId ?: number ) => {
63+ ( listenerID ?: number ) => {
6464 // Check if this function is either called through the current navigation listener or the general useEffect which listens for theme changes.
65- if ( listenerId !== undefined && listenerId !== listenerCount . current ) {
65+ if ( listenerID !== undefined && listenerID !== listenerCount . current ) {
6666 return ;
6767 }
6868
@@ -125,8 +125,8 @@ function CustomStatusBarAndBackground({isNested = false}: CustomStatusBarAndBack
125125
126126 // Add navigation state listeners to update the status bar every time the route changes
127127 // We have to pass a count as the listener id, because "react-navigation" somehow doesn't remove listeners properly
128- const listenerId = ++ listenerCount . current ;
129- const listener = ( ) => updateStatusBarStyle ( listenerId ) ;
128+ const listenerID = ++ listenerCount . current ;
129+ const listener = ( ) => updateStatusBarStyle ( listenerID ) ;
130130
131131 navigationRef . addListener ( 'state' , listener ) ;
132132 return ( ) => navigationRef . removeListener ( 'state' , listener ) ;
You can’t perform that action at this time.
0 commit comments