Skip to content

Commit 5682437

Browse files
committed
fix variable cap
1 parent f19b9fa commit 5682437

File tree

1 file changed

+4
-4
lines changed
  • src/components/CustomStatusBarAndBackground

1 file changed

+4
-4
lines changed

src/components/CustomStatusBarAndBackground/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)