Skip to content

[Android] Ellipsize single-line TextInput placeholders - #57909

Open
kosmydel wants to merge 2 commits into
react:mainfrom
discord:kosmydel/android-textinput-placeholder-ellipsize-rn
Open

[Android] Ellipsize single-line TextInput placeholders#57909
kosmydel wants to merge 2 commits into
react:mainfrom
discord:kosmydel/android-textinput-placeholder-ellipsize-rn

Conversation

@kosmydel

@kosmydel kosmydel commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

On Android, long TextInput placeholders are hard-clipped with no trailing ellipsis, while iOS truncates with .

Fixes #29663 (same class of bug as #55272; uses a correct multiline bitmask check and clears ellipsize when multiline is enabled).

Repro: https://github.com/kosmydel/android-ellipsize-repro

Before After
image image

Changelog

[Android] [Fixed] - Ellipsize long single-line TextInput placeholders to match iOS

Test Plan

  • Unit: ReactTextInputPropertyTest — placeholder sets TruncateAt.END; toggling multiline clears/restores ellipsize
  • Manual: https://github.com/kosmydel/android-ellipsize-repro
    • Single-line constrained TextInput with a long placeholder → trailing
    • Short placeholder unchanged
    • multiline={true} with a long placeholder → still wraps
    • Toggle multiline false → true → false → ellipsize restored

Long Android hints were hard-clipped; set TruncateAt.END for
non-multiline inputs so placeholders match iOS trailing ellipsis.

Co-authored-by: Cursor <cursoragent@cursor.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 12, 2026
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

Caution

Missing Changelog

Please add a Changelog to your PR description. See Changelog format

@kosmydel
kosmydel marked this pull request as ready for review August 12, 2026 10:29
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 12, 2026
@meta-codesync

meta-codesync Bot commented Aug 12, 2026

Copy link
Copy Markdown

@Abbondanzo has imported this pull request. If you are a Meta employee, you can view this in D115724716.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextInput placeholder is always multiline on Android

2 participants