ScrollView doesn't scroll up on new line in TextInput
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
When an auto-growing multiline TextInput inside a ScrollView gets a new line, the ScrollView is not scrolled up. Only after inserting another new line or a character the ScrollView scrolls to the appropriate position
Steps to reproduce
- Install the repro with
npm install npm run ios- Start typing text with each character in the new line
(See video attached)
React Native Version
0.86.0
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of npx @react-native-community/cli info
System:
OS: macOS 26.6.2
CPU: (11) arm64 Apple M3 Pro
Memory: 153.44 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 24.18.0
path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/node
Yarn:
version: 1.22.22
path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/yarn
npm:
version: 11.16.0
path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.5
- iOS 26.5
- macOS 26.5
- tvOS 26.5
- visionOS 26.5
- watchOS 26.5
Android SDK:
API Levels:
- "34"
- "35"
- "36"
Build Tools:
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-35 | Google Play ARM 64 v8a
- android-36 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.26094.121.2512.13991807
Xcode:
version: 26.6/17F113
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /Users/oleksiibulenok/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home/bin/javac
Ruby:
version: 2.7.6
path: /Users/oleksiibulenok/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.1.0
wanted: 20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.86.0
wanted: 0.86.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://github.com/abulenok/MultilineGrowRepro
Screenshots and Videos
https://github.com/user-attachments/assets/23aacdd2-168d-495e-9e55-f99dc00c2fdb
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 bằng cách chạy trình tái hiện bắt buộc với npm install và npm run ios, sau đó theo dõi hành vi của iOS Fabric TextInput và ScrollView liên quan đến lần xuống dòng đầu tiên. Được xem là hoàn tất khi một TextInput nhiều dòng tự động tăng chiều cao khiến ScrollView bao quanh cuộn đến vị trí phù hợp ngay lập tức khi bắt đầu dòng mới, mà không cần thêm ký tự hoặc lần xuống dòng nào khác.
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100