Skip to content

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.

1 participant