Search code examples
androidangularnativescriptangular2-nativescriptnativescript-angular

Create Spinner dropdown list in nativescript-angular app


How can I create dropdown list spinner in nativescript angular application that can be used for both the platform android and ios

https://i.sstatic.net/hxS9J.png


Solution

  • Use the DropDown plugin

    tns plugin add nativescript-drop-down
    

    Note: The DropDown in the image is native android component, there is no iOS equivalent out of the box which may give you exact same look and feel.

    Edit:

    The DropDown plugin is no longer updated and transferred to ProPlugins

    tns plugin add @proplugins/nativescript-drop-down