microsoft / microsoft/react-native-windows
Add more focus management APIs
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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