描述
在ScrollView中指定为"sticky"的视图在编程式滚动时会出现视觉故障。
重现步骤
- 在物理设备上安装Snack
- 点击"滚动到1000"按钮
- 点击"滚动到5000"按钮
React Native版本
0.74.3
受影响的平台
运行时 - Android,构建 - Linux
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
堆栈跟踪或日志
None
重现者
https://snack.expo.dev/@michail_shcherbakov/sticky-view-glitches
截图和视频
video_2024-07-19_18-19-54.mp4
1条答案
按热度按时间brvekthn1#
看起来这是一个特定于Android的问题。iOS设备上没有这样的问题。