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! GitHub - EvanBacon/react-native-web-hooks: Hooks for React Native web and Expo

here’s an example of it in action: hover with web hooks - Snack

1 Like

Thanks - it works!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.