Skip to content

React Navigation 6.x, 7.x, in iPad iOS 26.1, scrollview, flatlist... always scroll to top when back from another screen #12843

@ZaneRH

Description

@ZaneRH

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

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-drawer-layout
  • react-native-tab-view

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions