Skip to content

Commit

Permalink
fix: add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Aug 31, 2023
1 parent ecf6e1f commit 9d28155
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/CustomStatusBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import themeColors from '../../styles/themes/default';
function CustomStatusBar() {
useEffect(() => {
Navigation.isNavigationReady().then(() => {
// Set the status bar colour depending on the current route.
// If we don't have any colour defined for a route, fall back to
// appBG color.
const currentRoute = navigationRef.getCurrentRoute();
let currentScreenBackgroundColor = themeColors.appBG;
if (currentRoute && 'name' in currentRoute && currentRoute.name in themeColors.PAGE_BACKGROUND_COLORS) {
Expand Down

0 comments on commit 9d28155

Please sign in to comment.