Repository navigation
Last Character Randomly Missing in <Text> Component #53017
Description
Activity
- addedType: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)Issues and PRs related to new architecture (Fabric/Turbo Modules)
on Aug 4, 2025 - addedNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.
on Aug 4, 2025 Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
- For majority of bugs: send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
- If your bug is UI related: a Snack
- If your bug is build/upgrade related: a project using our Reproducer Template
You can read more about about it on our website: How to report a bug.Hello @WenBin0201, thank you for reporting this, but we need a valid reproducer.
Please use our Reproducer Template and specify the device models and how to simulate the issue.
Since this happens on users' devices, I can only provide screenshots and cannot test it directly. However, I noticed that it looks similar to this issue:
#50916
- addedNeeds: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.and removed
on Aug 5, 2025 I just initialized a new React Native project with version 0.80.2, and simulated the issue by increasing the system font size and weight on the device.
After changing the font size and weight, I observed that some text (usually the last character) gets truncated or disappears, which is consistent with what my users (on Xiaomi and OPPO devices) are experiencing.
It seems to be similar to this issue: #50916
Unfortunately, since this mainly happens on end users' devices, I can only provide screenshots, not a full reproduction.
2025-08-05_101942_873.mp4
Closing as duplicate of #50916.
facing this on xiaomi 15
"Intermittent, last character, only on some devices" is the signature of a pixel-grid rounding coincidence, and I have just put up a fix for one: react-native#58270 (Yoga side: react/yoga#2016).
roundLayoutResultsToPixelGridrounds a node's left and right edge to the physical pixel grid independently and takes the width as the difference. A value within0.0001of a whole pixel counts as already on the grid, and the two edges can land on opposite sides of that tolerance — the left edge is snapped up while the right edge is floored, leaving the box one physical pixel narrower than the text measured.ReactTextViewre-breaks the text at the width it is mounted with, so that one pixel costs the whole trailing glyph.That explains the "intermittent and hard to reproduce" part: the shortfall needs the node's absolute left edge to fall inside a window whose width is only as large as the gap between the measured width and the next whole pixel. Any change to an ancestor's fractional offset moves it in or out. It also requires a non-integer
pointScaleFactor— Xiaomi at 440 dpi is 2.75, which is where I reproduced it.One caveat specific to this report: you mention that changing the system font size or weight makes it reproduce more reliably. That points at #57950 instead, where Android measures with
Typeface.DEFAULTwhile rendering uses the system typeface, so the measured width is too small when the system font is bolded or replaced. Same symptom, different layer, and the two are independent. If your users hit it on a fresh start without touching font settings, the rounding fix is the more likely one; if it only shows up after changing font weight, #57950 is.
Description
On React Native 0.78.0 with react 19.0.0, we've encountered an intermittent issue where the last character inside a component is not rendered on some Android devices. This only happens occasionally and is hard to consistently reproduce.
Steps to reproduce
Users using Xiaomi and OPPO devices occasionally encounter the text clipping issue (last character missing) upon initial app startup.
During my own debugging, I was able to reproduce the issue more reliably by changing the system font size or weight in Android settings. After adjusting the font settings and returning to the app, the last character of a component sometimes disappears.
React Native Version
0.78.0
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
Screenshots and Videos
No response