<MotiPressable />
A near-replacement for React Native's Pressable
component, with animations run on the native thread.
#
Customized transitionsYou can also use the hovered
and pressed
state to customize your transition
prop.
For example, if you want to delay your animations when someone releases your button, you can pass a function to transition
:
Here, opacity
will stay at 0.5
for an extra 100
milliseconds after hovering/pressing both become false
.
For more info, see the interactions overview.