Skip to content

When quickly scrolling the sectionList component, the stickySectionHeader displays the wrong component. #51134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yandadaFreedom opened this issue May 6, 2025 · 4 comments
Labels
Component: SectionList Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Newer Patch Available

Comments

@yandadaFreedom
Copy link

yandadaFreedom commented May 6, 2025

Description

When quickly scrolling the sectionList component, you will notice that the stickySectionHeader displays an incorrect component before switching to another one. In the seventh second of the ios video, you can see that during the fast scrolling, the sticky header changes from section 7 to section 1, then back to section 6. This issue occurs on both Android and iOS.

Steps to reproduce

  1. install the application
  2. cd ReproducerApp and run npm ci
  3. npx react-native run-ios or npx react-native run-android
  4. then quickly scroll up and down the sectionList component.

React Native Version

0.79.0

Affected Platforms

Runtime - iOS、Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 14.2.1
  CPU: (8) x64 Apple M3
  Memory: 39.72 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.1
    path: ~/.nvm/versions/node/v20.11.1/bin/node
  Yarn:
    version: 2.4.3
    path: ~/.nvm/versions/node/v20.11.1/bin/yarn
  npm:
    version: 10.2.4
    path: ~/.nvm/versions/node/v20.11.1/bin/npm
  Watchman:
    version: 2024.10.21.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.3 AI-233.14808.21.2331.11709847
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 3.1.0
    path: /Users/didi/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.0
    wanted: 0.79.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: true

Stacktrace or Logs

no logs

MANDATORY Reproducer

https://github.com/yandadaFreedom/RN-bug-repo/tree/bug-sticky-header

Screenshots and Videos

iOS:

stickheader.MP4

android:

SVID_20250508_113241_1.mp4
@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.79.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@devanshsaini11
Copy link
Collaborator

@yandadaFreedom Thanks for raising this issue, can u please confirm if this is happening on old arch as well?

@devanshsaini11 devanshsaini11 added Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. and removed Needs: Triage 🔍 labels May 7, 2025
@yandadaFreedom
Copy link
Author

@yandadaFreedom Thanks for raising this issue, can u please confirm if this is happening on old arch as well?

Yes, I have tried the old architecture in version 0.73.11, and the performance is the same.

0.73.11.MP4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: SectionList Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Newer Patch Available
Projects
None yet
Development

No branches or pull requests

3 participants