1

I am building a React Native app and I am trying to make it so that when a user can slide their finger from a place not on the pressable to the pressable without lifting their finger and when the finger is over the pressable an action happens. How can I do that?

Itay Lador
  • 313
  • 1
  • 10

1 Answers1

0

You can use the onHoverIn prop on the Pressable see the React Native Pressable docs

<Pressable onHoverIn={() => console.log("entered me")}>
  <Text>Enter me</Text>
</Pressable>

See here a Snack Expo preview

RubenSmn
  • 4,091
  • 2
  • 5
  • 24