react / react/react-native

Text get cut randomly / hides some words since upgrading to 0.81.1 (from 0.80.x)

Aperta
#53,666 12 commenti 10 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Needs: Attention Needs: Repro
Lingua principale
C++
Stelle
127k
Fork
25.3k
Merge medio
1g 23h
PR unite (30g)
4

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il problema di rendering del testo su Android 15 con un Samsung S23, React Native 0.81.1, Hermes e la New Architecture. Confronta gli stessi casi di testo di FlatList con 0.80.x, inclusi gli emoji adiacenti e il testo con larghezza sufficiente. Il lavoro è completato quando la regressione è isolata e i casi interessati non tagliano più il testo né lo interrompono in modo imprevisto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, react-native
Ambito
mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.