You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android: last word of short Devanagari/Gurmukhi text dropped when lineHeight is set and the Text is shrink-wrapped #60138
On Android, a <Text> with an explicit lineHeight whose width is content-determined (e.g. alignSelf: 'flex-start' — a pill, badge or chip) can silently drop its final word when the text is Devanagari or Gurmukhi. The measured width comes out slightly narrower than what the layout needs, so the last word wraps to a second line where the box cannot grow — and vanishes. Latin text is unaffected; iOS is unaffected. Removing lineHeight renders the full string.
Expected: छूट गया / ਛੁੱਟ ਗਿਆ (two words each).
Actual: छूट / ਛੁੱਟ — the second word is gone. The bounding box shows trailing empty space roughly one word short.
Which exact strings trip it varies with measure rounding: on 0.86.3 we reproduced it with e.g. मुख्य पसंद → मुख्य and ऐप का उपयोग → ऐप का, while on 0.88.1 those two render fully but छूट गया / ਛੁੱਟ ਗਿਆ drop instead. That pattern is consistent with a small systematic under-measure of these scripts on the StaticLayout path (TextLayoutManager), not a glyph-specific bug.
React Native Version
0.88.1 (new architecture). Also reproduced on 0.86.3. Via Expo SDK 58, but nothing Expo-specific — the failing measure is core text layout.
Platform
Android 15 (API 35) emulator, arm64, Pixel 8 profile — and physical devices. Default system fonts (Noto Sans Devanagari / Gurmukhi).
Notes / what we tried
textBreakStrategy="simple" does not help (it breaks mid-word instead).
Bundling Noto fonts changes nothing (Android already draws these scripts with Noto).
Workaround we ship in production: append one trailing space to top-level Text for the affected languages — that one space of slack is enough for the measured width to fit the layout, and the full string renders. The need for exactly one space of slack again points at a small fixed under-measure.
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.
Activity
react-native-bot commentedon Nov 19, 2026
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:
You can read more about about it on our website: How to report a bug.