`ScrollView` handles gestures while `PanResponder` is active
未关闭
还没有人认领这个 Issue。
API: PanResponder
Component: ScrollView
Help Wanted :octocat:
Issue: Author Provided Repro
Type: New Architecture
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
Coming from react-native@0.73.x without new architecture the ScrollView was locked when the PanResponder was handling the drag interactions. Now in the latest react-native version (0.79.x) the ScrollView scrolls while the PanResponder is active.
Steps to reproduce
- In a
ScrollViewadd aViewwithPanResponder.handlers - Drag the
View
React Native Version
0.79.3
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.5
CPU: (14) arm64 Apple M4 Pro
Memory: 1.25 GB / 48.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.5
path: ~/.nvm/versions/node/v18.20.5/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.5/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.5/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /Users/colin/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12550806
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.3
path: /Users/colin/.sdkman/candidates/java/current/bin/javac
Ruby:
version: 3.3.6
path: /Users/colin/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: 18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.3
wanted: 0.79.3
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
Running "ReproducerApp" with {"rootTag":1,"initialProps":null,"fabric":true}
MANDATORY Reproducer
https://github.com/buschco/react-native-flow/tree/pan
Screenshots and Videos
https://github.com/user-attachments/assets/dbbd1f69-4175-4a00-945d-7271e3f01312
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从必需的 reproducer 开始,并使用列出的 React Native 0.79.3 配置复现 iOS 行为。跟踪拖动期间 ScrollView 与 PanResponder 之间的交互,并将其与报告的 0.73.x 行为进行比较。完成标准是:在 PanResponder 处理 gesture 时,ScrollView 保持锁定,并且有一个覆盖该情况的 regression test。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100