Bottom tab bar disappears permanently after rotating on iOS 26+ with tabBarHideOnKeyboard
Current behavior
On iOS 26+, rotating the device permanently hides the tab bar of any navigator using tabBarHideOnKeyboard. It does not come back while the app stays in that orientation, so tab navigation is unreachable until the user rotates back or restarts the app.
iOS 26+ posts a keyboard show notification on every interface rotation, with an empty keyboard frame, and never posts a matching hide. Subscribing to all four keyboard events and rotating twice on an iPhone running iOS 27.1:
keyboardWillShow height=0 screenY=871
keyboardDidShow height=0 screenY=871
keyboardWillHide — never fires
keyboardDidHide — never firesuseIsKeyboardShown treats any show notification as a real keyboard, so isKeyboardShown latches true and nothing clears it. BottomTabBar then evaluates
const shouldShowTabBar = !(tabBarHideOnKeyboard && isKeyboardShown);as false and animates the bar out with translateY: layout.height, position: 'absolute' and pointerEvents: 'none' — permanently, because the hide that would restore it never arrives.
Keyboard.isVisible() also returns true for these notifications, so it cannot be used to distinguish them from a real keyboard. The empty frame is the only signal I found that can.
This is not device-specific. The notifications come from the platform, so any rotating iOS 26+ device with a tabBarHideOnKeyboard navigator should be affected. The same unguarded handler is present on 7.x and on main, so v7 and the v8 alphas are both affected.
Expected behavior
Rotating the device should not hide the tab bar. tabBarHideOnKeyboard should react only to an actual keyboard.
Reproduction
https://github.com/olivier-bouillet/rn-bottom-tabs-rotation-repro
npm install
npx expo run:iosRun on an iOS 26+ device or simulator, then rotate. The tab bar disappears and does not return. Each screen prints the keyboard notifications it receives, so the empty-frame show events are visible on screen.
Platform
- iOS
Packages
- @react-navigation/bottom-tabs
Environment
| package | version |
|---|---|
| @react-navigation/bottom-tabs | 7.19.2 |
| @react-navigation/native | 7.4.1 |
| react-native | 0.86.3 |
| expo | 57.0.24 |
| node | 23.11.1 |
| Xcode | 27.0 |
A fix is proposed in #13261.
Source: react-navigation/react-navigation