react / react/react-native

Sticky views have visual glitches while scrolling in ScrollView

オープン
#45,546 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Component: ScrollView Issue: Author Provided Repro Needs: Triage :mag:
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた Snack reproducer と React Native ScrollView の実装から始め、Android でのプログラムによるスクロール中の sticky views に焦点を当てます。物理デバイスで2つのスクロール操作を再現します。1000、続いて5000までスクロールしたときに sticky views が視覚的に安定していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。