Skip to content

Commit

Permalink
Merge pull request Expensify#38460 from tienifr/fix/37276
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored Mar 21, 2024
2 parents 949dab4 + 864d7d8 commit 1b6054b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/CustomStatusBarAndBackground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ function CustomStatusBarAndBackground({isNested = false}: CustomStatusBarAndBack
[prevIsRootStatusBarEnabled, isRootStatusBarEnabled, statusBarAnimation, statusBarStyle, theme.PAGE_THEMES, theme.appBG, theme.statusBarStyle],
);

useEffect(() => {
updateStatusBarAppearance({backgroundColor: theme.appBG});
// eslint-disable-next-line react-hooks/exhaustive-deps -- we only want this to run on first render
}, []);

useEffect(() => {
didForceUpdateStatusBarRef.current = false;
}, [isRootStatusBarEnabled]);
Expand Down

0 comments on commit 1b6054b

Please sign in to comment.