microsoft / microsoft/react-native-windows

Add more focus management APIs

Open
#5,706 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: Keyboard enhancement Needs: PM Design Workstream: Component Parity
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Proposal: Introduce more robust focus management APIs

Summary

Native frameworks have tons of focus management APIs which can be brought forward to RN. We have done the first bit with onFocus(), onBlur() etc., and there are more that can be brought here like the ones mentioned in this comment thread.

Some APIs from React that were mentioned so far as would be good to have in React Native include:

  • beforeBlur/afterBlur (Windows equivalent: LosingFocus/LostFocus)
  • focusin/focusout (Windows equivalent maybe: GettingFocus/LosingFocus)

Filing this proposal to track revisiting this after Fabric is completed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked comment thread and revisit this proposal after Fabric is completed. The issue names beforeBlur/afterBlur and focusin/focusout as candidate APIs, but it does not specify implementation files, tests, or a definition of done beyond revisiting the proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.