Skip to content

Conversation

@krishx06
Copy link

@krishx06 krishx06 commented Nov 8, 2025

Summary:

This pull request adds a new example to RNTester named TextInputLayoutBugExample, which reproduces the layout issue in TextInput where multiline inputs with a fixed height and textAlignVertical="top" display text inconsistently on the first render.

The example makes it easier for maintainers and contributors to visualize, debug, and verify fixes for the problem reported in #54304

Changelog:

[INTERNAL] [ADDED] - Add TextInput layout issue example to RNTester (#54304)

Test Plan:

  1. Build and run RNTester on iOS.
  2. Navigate to Components → TextInput Layout Issue.
  3. Tap “Long Note” and observe that the text appears squashed near the top of the TextInput.
  4. Tap “Back”, then open “Short Note”, and return to “Long Note”
    the text now displays correctly, demonstrating the layout inconsistency.

This confirms that the example reliably reproduces the issue described in (#54304)
Attached below are two screenshots — one showing the bug (initial render) and another after navigation, where the text alignment corrects itself.

Screenshot 2025-11-08 at 9 20 47 PM Screenshot 2025-11-08 at 9 21 13 PM

@meta-cla
Copy link

meta-cla bot commented Nov 8, 2025

Hi @krishx06!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@meta-cla
Copy link

meta-cla bot commented Nov 8, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@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 Nov 8, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 8, 2025
@sbuggay
Copy link
Contributor

sbuggay commented Nov 8, 2025

I don't think we need a test page just to reproduce an issue, I think this makes more sense to put in the regular TextInput tests once #54304 has been fixed.

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.

3 participants