[ScrollView] Large text content is not scrollable with hardware keyboard in iOS(repro provided)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C++
- Star
- 127k
- Fork
- 25.3k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
Description
This issue is only observed on iOS.
When the content of the ScrollView is large enough to become scrollable and there are no focusable elements inside of it like buttons or form fields, the user can't scroll the content via hardware keyboard's up and down arrow keys.
I've found this as well which might be useful -> https://developer.apple.com/documentation/UIKit/UIScrollView/allowsKeyboardScrolling
Steps to reproduce
- Clone the repro.
- Install dependencies.
- Run iOS with
npm run iosoryarn ios - Go to simulator Settings, Accessibility, Keyboards & Typing, Full Keyboard Access, switch to ON.
- Go to ReproducerApp.
- Try to scroll the content with Hardware Keyboard's up and down arrow keys and observe that nothing is happening.
React Native Version
0.79.4
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Max
Memory: 418.52 MB / 64.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:
version: 2025.07.21.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23726.103.2422.13016713
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 3.1.6
path: /opt/homebrew/opt/ruby@3.1/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 19.1.1
wanted: 19.1.1
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.79.4
wanted: 0.79.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
No crash.
MANDATORY Reproducer
https://github.com/filip-angelov/reproducer-scroll-view-issue
Screenshots and Videos
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với reproducer được liên kết và chạy nó bằng npm run ios hoặc yarn ios; bật Full Keyboard Access trong trình mô phỏng và xác nhận lỗi của các phím mũi tên. Đọc đường đi iOS của React Native ScrollView cùng với tài liệu của UIKit về UIScrollView.allowsKeyboardScrolling. Được xem là hoàn tất khi nội dung ScrollView lớn không có phần tử con có thể nhận focus có thể cuộn bằng các phím mũi tên lên và xuống của bàn phím phần cứng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, react-native
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100