Skip to content

@nocommit Make ReactTextChangedEvent syncronous #52534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cortinico
Copy link
Contributor

@cortinico cortinico commented Jul 10, 2025

Summary:
Fixes #46813

Users are reporting that TextInput is flickering in multiline when adding/removing lines of text (see videos in #46813).
One possible solution for this is to make ReactTextChangedEvent syncronous so the rendering of the intermediate frame will be blocked.

Changelog:
[Android] [Fixed] - TextInput: Fixing TextInput jumping when adding/removing line of text due to delayed layout update happening after content update

Before After
Jul-10-2025 16-37-00 ezgif-21d8c5a402e9bb

Differential Revision: D78096197

Summary:
Those constructors are no longer necessary. They're deprecated + the class is internal so they're not breaking changes.
I'm just cleaning them up as they're not needed anymore.

Changelog:
[Internal] [Changed] - Remove deprecated constructors for TextInput *Event classes

Differential Revision: D78095748
Summary:
Fixes facebook#46813

Users are reporting that TextInput is flickering in multiline when adding/removing lines of text (see videos in facebook#46813).
One possible solution for this is to make `ReactTextChangedEvent` syncronous so the rendering of the intermediate frame will be blocked.

Changelog:
[Android] [Fixed] - **TextInput:** Fixing TextInput jumping when adding/removing line of text due to delayed layout update happening after content update

Differential Revision: D78096197
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jul 10, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78096197

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. fb-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Content jump in multiline TextInput when adding/removing line of text due to delayed layout update happening after content update
2 participants