Text get cut randomly / hides some words since upgrading to 0.81.1 (from 0.80.x)
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
I have just upgraded from 0.80.x to latest 0.81.1, and now some Text randomly cut out words, or line break them for no reason when they have more than enough space to fit etc
The same code that was working for years suddenly break Text basic component.
It doesn't happen on all android devices, only on some; for example on a samsung s23, one ui 7.0, android version 15. and not everywhere.
For example in a flatlist of text messages, using two emojis in a row will line break one; and on some devices even hide the second one entirely while leaving the space for it there.
it doesn't open only in flatlist, but it's easier to reproduce with it.
Steps to reproduce
use latest 0.81.1
display list of texts in a flatlist
some text get cut; some get line break for no reason.
using new arch (if that matters)
targeting android 36
React Native Version
0.81.1
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: Windows 11 10.0.26100
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF
Memory: 10.45 GB / 31.86 GB
Binaries:
Node:
version: 22.16.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.9.2
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-221.6008.13.2211.9514443
Visual Studio:
- 17.14.36301.6 (Visual Studio Community 2022)
Languages:
Java: 11.0.18
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.1
wanted: ^0.81.1
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Yes
Stacktrace or Logs
no crash
MANDATORY Reproducer
none
Screenshots and Videos
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在使用 Samsung S23、React Native 0.81.1、Hermes 和 New Architecture 的 Android 15 上复现文本渲染问题。将相同的 FlatList 文本用例与 0.80.x 进行比较,包括相邻的 emoji 以及具有足够宽度的文本。完成标准是已隔离该回归问题,并且受影响的用例不再截断文本或意外换行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100