Skip to content

Conversation

HariniMalothu17
Copy link
Contributor

@HariniMalothu17 HariniMalothu17 commented Jun 25, 2025

Description

Implement autoFocus property for TextInput for fabric

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

Implement the autoFocus property for the fabric implementation of TextInput.
This property was available in RNW Paper via TextInputViewManager.
See https://reactnative.dev/docs/textinput#autofocus for details.

Resolves [Add Relevant Issue Here]

Screenshots

image

Testing

Test for this feature is present in TextInputSharedExamples.js.E2E test is working successfully

Changelog

yes

Add a brief summary of the change to use in the release notes for the next release.
Implement autoFocus property for TextInput for fabric

Microsoft Reviewers: Open in CodeFlow

@HariniMalothu17 HariniMalothu17 marked this pull request as ready for review June 25, 2025 12:48
@HariniMalothu17 HariniMalothu17 requested a review from a team as a code owner June 25, 2025 12:48
@vineethkuttan
Copy link
Contributor

vineethkuttan commented Jun 25, 2025

@HariniMalothu17 just a question. will autofocus set the Cursor to focussed component?

If so It is possible to add the testcase in RNTester right?

@iamAbhi-916 iamAbhi-916 merged commit d0f17f8 into microsoft:main Jun 25, 2025
58 checks passed
@HariniMalothu17 HariniMalothu17 deleted the user/harinimalothu17/ImplementAutoFocus branch June 25, 2025 16:17
@HariniMalothu17
Copy link
Contributor Author

@HariniMalothu17 just a question. will autofocus set the Cursor to focussed component?

If so It is possible to add the testcase in RNTester right?

Hey the testcases for autofocus are already added in TextInputSharedExamples.js.

acoates-ms pushed a commit to acoates-ms/react-native-windows that referenced this pull request Sep 11, 2025
…soft#14816)

* Added fix for AutoFocus

* Change files

---------

Co-authored-by: Harini Malothu <[email protected]>
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.

4 participants