Skip to content
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

feat: remove 'textInput' event from UserEvent type() #1645

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

mdjastrzebski
Copy link
Member

Summary

RN 0.75 no longer emits textInput events for TextInput component.
This PR brings User Event in line with this change and stops emitting textInput event in type() interaction.

Note:
This is not considered a breaking change in RNTL, as the RNTL API did not cause the change, it's the underlying RN behavior (we are simulating) that is changing. The textInput is relatively rarely used event (changeText would be the most popular one).
If users tests start failing, it's actually a positive development, prompting user to notice the problem before discovering in production with RN 0.75 runtime behavior.

Test plan

Validated RN 0.75 behavior using side app created with RN CLI. Updated automated tests to match experimental behavior.

@mdjastrzebski mdjastrzebski changed the title feat: remove 'textInput' feat: remove 'textInput' event from UserEvent type() Aug 13, 2024
@mdjastrzebski mdjastrzebski merged commit f0df299 into main Aug 13, 2024
7 checks passed
@mdjastrzebski mdjastrzebski deleted the feat/rn-0.75-events-changes branch August 13, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant