react / react/react-native

Sticky views have visual glitches while scrolling in ScrollView

Đang mở
#45,546 2 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: ScrollView Issue: Author Provided Repro Needs: Triage :mag:
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

The views that specified as "sticky" in ScrollView have visual glitches while scrolling programmatically.

Steps to reproduce
  1. Install the Snack on a physical device
  2. Press the "Scroll to 1000" button
  3. Press the "Scroll to 5000" button
React Native Version

0.74.3

Affected Platforms

Runtime - Android, Build - Linux

Output of npx react-native info
System:
  OS: Linux 5.15 Arch Linux
  CPU: (8) x64 Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz
  Memory: 5.20 GB / 7.71 GB
  Shell:
    version: 5.2.26
    path: /usr/bin/bash
Binaries:
  Node:
    version: 20.15.1
    path: ~/.nvm/versions/node/v20.15.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.15.1/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.15.1/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.3
    wanted: 0.74.3
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
Stacktrace or Logs
None
Reproducer

https://snack.expo.dev/@michail_shcherbakov/sticky-view-glitches

Screenshots and Videos

https://github.com/user-attachments/assets/9b93783e-4d85-4000-bcec-87870cfd1446

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 với trình reproducer Snack được liên kết và phần triển khai React Native ScrollView, tập trung vào các sticky views trong khi cuộn bằng chương trình trên Android. Tái hiện hai thao tác cuộn trên một thiết bị vật lý; hoàn tất khi các sticky views vẫn ổn định về mặt hiển thị khi cuộn đến 1000 rồi đến 5000.

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

Đánh giá

Công nghệ
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.