Skip to content

feat: include information about text range changes in onChange#45248

Closed
hannojg wants to merge 5 commits intofacebook:mainfrom
hannojg:feat/native-text-range-updates
Closed

feat: include information about text range changes in onChange#45248
hannojg wants to merge 5 commits intofacebook:mainfrom
hannojg:feat/native-text-range-updates

Conversation

@hannojg
Copy link
Contributor

@hannojg hannojg commented Jul 2, 2024

Summary:

This Pr provides a solution to:

By providing further information about the range in which a text has been changed in the onChange event users are able to implement <TextInputs /> that only apply partial text updates, thus avoiding race condition issues between the main/UI and JS thread.

Changelog:

[ANDROID] [ADDED] - Add start, before, count info to the Textinput's onChange event
[IOS] [ADDED] - Add start, before, count info to the Textinput's onChange event

Test Plan:

I added an example to the rn-tester app.

Screen.Recording.2024-07-02.at.15.33.29.mov

@analysis-bot
Copy link

analysis-bot commented Jul 2, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,300,899 +337
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,497,495 +121
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: c252460
Branch: main

@hannojg hannojg force-pushed the feat/native-text-range-updates branch 3 times, most recently from e26ce7a to ffb06f8 Compare July 2, 2024 14:24
@hannojg hannojg force-pushed the feat/native-text-range-updates branch from ffb06f8 to 5bcdda8 Compare July 2, 2024 14:42
@hannojg hannojg marked this pull request as ready for review July 2, 2024 14:45
@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 Jul 2, 2024
hannojg added a commit to margelo/react-native-live-markdown that referenced this pull request Jul 2, 2024
@react-native-bot
Copy link
Collaborator

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 14, 2025
@react-native-bot
Copy link
Collaborator

This PR was closed because it has been stalled for 7 days with no activity.

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. Stale There has been a lack of activity on this issue and it may be closed soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants