react / react/react-native

Sticky views have visual glitches while scrolling in ScrollView

Open
#45,546 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: ScrollView Issue: Author Provided Repro Needs: Triage :mag:
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Snack reproducer and the React Native ScrollView implementation, focusing on sticky views during programmatic scrolling on Android. Reproduce the two scroll actions on a physical device; done means sticky views remain visually stable when scrolling to 1000 and then 5000.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.