Navigation bar isn't handled well in Android #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
look at the tab bar in the bottom. I don't know why but i feel like it should start above the navigation bar and not under it. I guess we could use the safe area for the bottom part of the app

@claude can you try to solve it pls?
Pushed the fix to
claude/fix-tab-bar-nav-bar-27.Root cause
App.tsxnever wrapped the app tree in<SafeAreaProvider>(fromreact-native-safe-area-context, already a project dependency). Without it, everyuseSafeAreaInsets()call in the app — including the one@react-navigation/bottom-tabsuses internally to pad the tab bar — resolves to zero insets. On Android's edge-to-edge layout (default since RN 0.86 / Expo SDK 57), that means the tab bar draws flush to the bottom of the screen, right under the system navigation bar, instead of sitting above it.Fix
Wrapped the whole app in
SafeAreaProviderinApp.tsx:No changes were needed in
AppNavigator.tsx— the bottom tab bar already picks up safe-area insets automatically once aSafeAreaProviderexists in the tree, since itstabBarStyledoesn't overrideheight.npm run checks:tscandnpm run checks:lintboth pass. I couldn't run the app in an emulator in this CI environment, so please verify on-device that the tab bar now sits above the gesture/nav bar.