How can I get mouse events for hover on web app

I am building a web application using Expo on React Native.

I need to implement “hover” - when the user moves the mouse cursor above a component, I need to change the mouse cursor and also display a tooltip with the action that will be taken if the user presses that component.

Been googling for long, and found no solution.

Can anyone here help?

Thanks

you might find this library to be helpful! https://github.com/EvanBacon/react-native-web-hooks

here’s an example of it in action: https://snack.expo.io/@notbrent/hover-with-web-hooks

1 Like

Thanks - it works!