Listview item reorder, vibrate on drag


#1

Hello guys Im using Listview

<lv:RadListView itemReordered="{{onItemReordered}}" items="{{ dataItems }}" row="1" itemReorder="true">

    <lv:RadListView.itemTemplate>
        <StackLayout paddingTop="5" paddingBottom="5">
            <Label fontSize="20" text="{{ itemName }}" marginLeft="10"/>

        </StackLayout>
    </lv:RadListView.itemTemplate>
</lv:RadListView>

And I would like the effect to

  • vibrate phone on start drag/ reorder of Items
  • or some simmilar effect

How can I achieve this in Nativescript ??


#2

You have events callbacks, just call the native vibrate apis or try the nativescript-vibrate plugin from those callbacks.