How to make a button react to a press


#1

I have some buttons that I’d like to have blink when someone presses them. How can I do this in nativescript? I get the impression that the normal css modifiers (eg. :pressed) don’t work. So is there another way to do it?


#2

Use :highlighted

Docs: https://docs.nativescript.org/ui/styling#pseudo-selector