Text get cut randomly / hides some words since upgrading to 0.81.1 (from 0.80.x)
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Samsung S23、React Native 0.81.1、Hermes、New Architecture を使用して Android 15 でテキストレンダリングの問題を再現します。同じ FlatList のテキストケースを 0.80.x と比較します。隣接する絵文字や、十分な幅があるテキストも含めます。回帰が切り分けられ、影響を受けるケースでテキストが切れたり予期せず改行されたりしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100