-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onMouseEnter/onMouseLeave for genereric Views π±π±οΈ #492
Comments
+1 and it's not just a mouse this would be useful for:
I believe these all trigger the same hover events as a connected mouse. Many pure-native apps support hover events perfectly for these. |
Excellent point. Thanks for adding to the discussion! |
Looking at the react-native code I found that this kind of pointer event seems to be under development and we will get there soon. |
Btw, seems @lunaleaps is actively working on it... /~https://github.com/facebook/react-native/commits?author=lunaleaps |
@vincentriemer and I are working on implementing the PointerEvent spec and have some coarse implementation of it. You can opt into it using ReactFeatureFlag |
@runtothedoor Let us know if you end up trying it and have any thoughts: #557 I'll close this and we can continue discussion there. |
Introduction
You can connect mouse to mobile devices via USB or Bluetooth but while working with generic view, hover events for that are not exposed.
Example of discord app's usage for hover events:
Reference
Android OnHoverListener:
https://developer.android.com/reference/android/view/View.OnHoverListener
IOS UIHoverGestureRecognizer:
https://developer.apple.com/documentation/uikit/uihovergesturerecognizer
The text was updated successfully, but these errors were encountered: