Here you can find an example on how to use the directive:
Because of the console.log inside of the HostListener every time that the user taps on the host element you should get a console log, but nothing happens. It works flawlessly in the web. Doesn’t Nativescript support host listeners?
While if I put the very same Label inside its own component it doesn’t work anymore:
Using StackLayout inside the Item component doesn’t help either.
But applying the directive to StackLayout itself does indeed work:
With all of the previous solutions you’ll loose the ripple effect. I still didn’t find any way to listed for both tap and longPress events without loosing the ripple effect. It seems to be a well known bug: