Skip to content

fix(tabs): use background color for top safe area so status bar matches#108

Open
yashpatil27 wants to merge 1 commit into
taylorcox75:mainfrom
yashpatil27:fix/tabs-status-bar-background
Open

fix(tabs): use background color for top safe area so status bar matches#108
yashpatil27 wants to merge 1 commit into
taylorcox75:mainfrom
yashpatil27:fix/tabs-status-bar-background

Conversation

@yashpatil27
Copy link
Copy Markdown
Contributor

Summary

On tab screens, the status bar area appeared as a different color than the rest of the screen:

  • Dark mode: grey status bar (#1C1C1E) over black content (#000000)
  • Light mode: pure-white status bar (#FFFFFF) over off-white content (#F2F2F7)

The cause was app/(tabs)/_layout.tsx: the top SafeAreaView was filled with colors.surface, while each tab screen renders its body with colors.background.

Fix

Set the tabs layout SafeAreaView background to colors.background so the status bar area blends seamlessly with the page below. The edges={['top']} constraint means this only affects the top safe area; the bottom tab bar keeps its own colors.surface styling via tabBarStyle.backgroundColor and is unaffected.

Tested

  • Torrents / Transfer / Search / Settings tabs in both light and dark — status bar now matches the content background.
  • Non-tab screens (settings detail screens, modals, etc.) were already using colors.background for their own top safe area and are unchanged.

The tabs layout SafeAreaView filled the top safe-area (status bar) with colors.surface, while every tab screen below it uses colors.background for its content. That mismatch shows up as a grey bar over black content in dark mode, and a pure-white bar over off-white content in light mode.

Switching the SafeAreaView background to colors.background makes the status bar area blend seamlessly with the page below. The bottom tab bar keeps its own colors.surface via tabBarStyle, so it is unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant