Skip to content

Commit

Permalink
Update src/components/CustomStatusBar/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Fedi Rajhi <[email protected]>
  • Loading branch information
chrispader and fedirjh authored Nov 30, 2023
1 parent f08d0a1 commit c0dbdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CustomStatusBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const CustomStatusBar: CustomStatusBarType = ({isNested = false}) => {
}, [isDisabled, theme.PAGE_THEMES, theme.appBG, theme.statusBarStyle]);

useEffect(() => {
navigationRef.addListener('state', navigationStateListener);
navigationRef.addListener('state', updateStatusBarStyle);

return () => navigationRef.removeListener('state', navigationStateListener);

Check failure on line 70 in src/components/CustomStatusBar/index.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find name 'navigationStateListener'.
}, [navigationStateListener]);

Check failure on line 71 in src/components/CustomStatusBar/index.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find name 'navigationStateListener'.

Check warning on line 71 in src/components/CustomStatusBar/index.tsx

View workflow job for this annotation

GitHub Actions / lint

React Hook useEffect has a missing dependency: 'updateStatusBarStyle'. Either include it or remove the dependency array. Outer scope values like 'navigationStateListener' aren't valid dependencies because mutating them doesn't re-render the component
Expand Down

0 comments on commit c0dbdc4

Please sign in to comment.