Current behavior
With React Navigation 6.0
In iPad iOS 26.1, the scrolled down scrollable view always auto scroll back to top, when navigation.goBack() from another screen.
The screens are inside a Stack Navigator, with { headerShown: false } in screenOptions.
With any header related options set, the problem will occur.
It's fine when the default header is shown (no headerShown / header set in screenOptions)
Expected behavior
Should not scroll to top when back from another screen.
Reproduction
Platform
Packages
Environment
- [] I've removed the packages that I don't use
| package |
version |
| @react-navigation/native |
6.1.9 |
| @react-navigation/bottom-tabs |
6.5.20 |
| @react-navigation/drawer |
|
| @react-navigation/material-top-tabs |
|
| @react-navigation/stack |
6.3.20 |
| @react-navigation/native-stack |
|
| react-native-drawer-layout |
|
| react-native-tab-view |
3.5.2 |
| react-native-screens |
3.29.0 |
| react-native-safe-area-context |
4.8.2 |
| react-native-gesture-handler |
2.25.0 |
| react-native-reanimated |
3.16.7 |
| react-native-pager-view |
6.2.3 |
| react-native |
0.74.4 |
| expo |
|
| node |
|
| npm or yarn |
|
Tried latest version of
@react-navigation/native 7.1.19
@react-navigation/bottom-tabs 7.8.4
@react-navigation/stack 7.6.3
same issue.
Current behavior
With React Navigation 6.0
In iPad iOS 26.1, the scrolled down scrollable view always auto scroll back to top, when navigation.goBack() from another screen.
The screens are inside a Stack Navigator, with { headerShown: false } in screenOptions.
With any header related options set, the problem will occur.
It's fine when the default header is shown (no headerShown / header set in screenOptions)
Expected behavior
Should not scroll to top when back from another screen.
Reproduction
Platform
Packages
Environment
Tried latest version of
@react-navigation/native 7.1.19
@react-navigation/bottom-tabs 7.8.4
@react-navigation/stack 7.6.3
same issue.