react / react/react-native

【ios】The stickySectionHeader of the SectionList component sometimes does not display.

Đang mở
#51,129 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Component: SectionList Issue: Author Provided Repro Newer Patch Available Platform: iOS
Ngôn ngữ chính
C++
Star
127k
Fork
25.3k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
4

Mô tả

Description

When the sectionList component calls the scrollToLocation method, the stickySectionHeader occasionally does not display.The stickySectionHeader only displays when I manually trigger scrolling in the sectionList.

Steps to reproduce
  1. install the application
  2. cd ReproducerApp and run npm ci
  3. npx react-native run-ios
  4. then wait for 3 seconds, the scrollToLocation method will be called

This issue does not always occur; it happens occasionally. You can try reloading several times.

React Native Version

0.79.0

Affected Platforms

Runtime - iOS

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-scroll-to-location

Screenshots and Videos

https://github.com/user-attachments/assets/08e0352a-4a54-4c11-bf49-74d57843cf62

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách chạy reproducer bắt buộc tại yandadaFreedom/RN-bug-repo, làm theo thiết lập ReproducerApp của repository đó và kích hoạt SectionList.scrollToLocation sau ba giây. So sánh thao tác cuộn tự động với thao tác cuộn thủ công trên iOS và theo dõi hành vi của SectionList stickySectionHeader; hoàn tất khi header hiển thị nhất quán sau thao tác cuộn bằng chương trình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ios, react-native
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.