NativeScript Toast Plugin
A NativeScript Toast Plugin for Android and iOS apps.
What is a toast?
A toast provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive. - Android Developer
How to install and use this plugin? Watch it on YouTube!
Want simple example application to play with? nativescript-toast-example
Run the following command from the root of your project:
$ tns plugin add nativescript-toast
Or the develop version, which may not work completly:
$ tns plugin add nativescript-toast@next
var Toast = ;// ...var toast = Toast;toast;
Or via import:
;// ...var toast = Toast;toast;
It is also possible to chain the methods.
"long" to the
makeText function to show the toast a bit longer.
- Android SDK
- Xcode 8+