Support for onDoubleTap and other properties on Pressable
Discussed in https://github.com/conceptadev/mix/discussions/447
Originally posted by Solido August 15, 2024 I need support for double click :) right now onPress only is supported if I understand well? Thanks!
Should also include styling variants.
@leoafarias Thank you for create a great lib. There is also a disscusion on create onTapDown; https://discord.com/channels/1250793431819751524/1250797904340193280/1261089142759231741
I think it would be great if we can style when user pressing the pressable box.
Thanks!
I’d like to add my support for this feature request. I really need the ability to style a button specifically at the onTapDown event.
On the web we have hover styling, but on mobile, there’s no equivalent for a when a button is pressed (but not released) state. It would be helpful to apply styling in that moment, similar to how hover works on the web.
I see that #453 extends gesture detection, but it doesn’t seem to expose onTapDown yet.
Thanks for all the work you guys have done!
We realized that our implementation of the behavior was incorrect. In Mix v1, the animation was only triggered when the user released the button. However, based on your feedback, we modified the animation trigger moment in Mix v2. Now, the animation is activated on onTapDown.
Thank you all!