[Android] Parts of Text disappear due to incorrect
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
With certain word combinations and certain styling, Android Text rendering will calculate required size in such a way that some of the text will be dropped.
Minimal repro distilled from production code:
<View style={{ flexDirection: 'row'}}>
<Text style={{ fontSize: 15, lineHeight: 15, fontWeight: '900'}}>VERIFY NUMBER</Text>
</View>
Steps to reproduce
- Install application with
yarn android - Observe text visible on screen vs text props
Reproducer Tested on Android Emulator, Pixel 9a template, API 37.0
React Native Version
0.85.3 (also reproduced on 0.84, 0.83)
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of npx @react-native-community/cli info
System:
OS: macOS 26.3.1
CPU: (11) arm64 Apple M3 Pro
Memory: 176.36 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.14.0
path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/node
Yarn:
version: 1.22.22
path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/yarn
npm:
version: 11.16.0
path: /Users/mlisik/.nvm/versions/node/v22.14.0/bin/npm
Watchman:
version: 2026.03.09.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/mlisik/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK: Not Found
IDEs:
Android Studio: 2025.3 AI-253.30387.90.2532.14935130
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 3.3.5
path: /Users/mlisik/.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.85.3
wanted: 0.85.3
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://github.com/mlisikbf/MobileTest_AndroidTextWrapIssue
Screenshots and Videos
| default font weight - no issue | increased font weight to repro |
|---|---|
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 bắt buộc và chạy nó bằng yarn android trên Android, so sánh văn bản hiển thị với các Text props. Theo dõi đường dẫn kết xuất văn bản của Fabric Android cho flexDirection: 'row', cỡ chữ, chiều cao dòng và kiểu chữ đậm được thể hiện trong issue. Hoàn tất khi toàn bộ văn bản VERIFY NUMBER vẫn hiển thị trong reproducer.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, react-native
- Lĩnh vực
- mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100