Open s77rt opened 1 year ago
getCurrentFocus
methods such as https://developer.android.com/reference/android/view/Window#getCurrentFocus()firstResponder
https://developer.apple.com/documentation/appkit/nswindow/1419440-firstresponder?language=objc
Introduction
Hi :wave:! On Web (ReactJS/RNW) the blur event contains info about the new to-be-focused element (
nativeEvent.relatedTarget
). This is really helpful to know how to act in certain scenarios. Unfortunately, we don't have such a feature on Native. But can we have it? Or get close to it?Details
I understand that we may not have control over the blur event due to host limitations. However, the value we are looking for here is not strictly tied to the blur event i.e.
nativeEvent.relatedTarget
will return the newly focused element. So as an alternative can we just ask the OS which element is currently focused?I'm looking to understand the requirements/challenges that may be blocking us from implementing this feature.
Discussion points
nativeID
) of that element?