NativeScript Toast Plugin
A NativeScript Toast Plugin for Android apps.
Demo
How to install and use this plugin? Watch it on YouTube!
Installation
Run the following command from the root of your project:
$ tns plugin add nativescript-toast
Usage
var Toast = require("nativescript-toast");
var toast = Toast.makeText("Hello World");
toast.show();
It is also possible to chain the methods.
Toast.makeText("Hello World").show();
Pass "long"
to the makeText
function to show the toast a bit longer.
Toast.makeText("Hello World", "long").show();