react-native 在ScrollView中滚动时,粘性视图存在视觉故障,

evrscar2  于 10个月前  发布在  React
关注(0)|答案(1)|浏览(92)

描述

在ScrollView中指定为"sticky"的视图在编程式滚动时会出现视觉故障。

重现步骤

  1. 在物理设备上安装Snack
  2. 点击"滚动到1000"按钮
  3. 点击"滚动到5000"按钮

React Native版本

0.74.3

受影响的平台

运行时 - Android,构建 - Linux

npx react-native info的输出

  1. System:
  2. OS: Linux 5.15 Arch Linux
  3. CPU: (8) x64 Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz
  4. Memory: 5.20 GB / 7.71 GB
  5. Shell:
  6. version: 5.2.26
  7. path: /usr/bin/bash
  8. Binaries:
  9. Node:
  10. version: 20.15.1
  11. path: ~/.nvm/versions/node/v20.15.1/bin/node
  12. Yarn:
  13. version: 1.22.22
  14. path: ~/.nvm/versions/node/v20.15.1/bin/yarn
  15. npm:
  16. version: 10.8.2
  17. path: ~/.nvm/versions/node/v20.15.1/bin/npm
  18. Watchman: Not Found
  19. SDKs:
  20. Android SDK: Not Found
  21. IDEs:
  22. Android Studio: Not Found
  23. Languages:
  24. Java: Not Found
  25. Ruby: Not Found
  26. npmPackages:
  27. "@react-native-community/cli": Not Found
  28. react:
  29. installed: 18.2.0
  30. wanted: 18.2.0
  31. react-native:
  32. installed: 0.74.3
  33. wanted: 0.74.3
  34. npmGlobalPackages:
  35. "*react-native*": Not Found
  36. Android:
  37. hermesEnabled: Not found
  38. newArchEnabled: Not found
  39. iOS:
  40. hermesEnabled: Not found
  41. newArchEnabled: Not found

堆栈跟踪或日志

  1. None

重现者

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

截图和视频

video_2024-07-19_18-19-54.mp4

brvekthn

brvekthn1#

看起来这是一个特定于Android的问题。iOS设备上没有这样的问题。

相关问题