Skip to content
Provides common API to create toast notifications for android and iOS
Branch: master
Clone or download
Latest commit ea64633 Feb 18, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
platforms/ios Added plugin code Sep 28, 2016 fixes: read me typos Feb 18, 2017
index.d.ts updated typescript declarations and version number Feb 18, 2017
index.js android toast positioning Feb 18, 2017
package.json updated typescript declarations and version number Feb 18, 2017


This plugin provides a common API for android and iOS to show toast notifications in your NativeScript applications.


tns plugin add nativescript-toasts

How to use

var nstoasts = require("nativescript-toasts");
var options = {
	text: "Hello World",
    duration : nstoasts.DURATION.SHORT,
    position : nstoasts.POSITION.TOP //optional

This plugin uses third party libraries for iOS

The plugin uses a pod created by Charles Scalesse to display toasts on iOS

Typescript users

import * as Toast from 'nativescript-toasts';

let toastOptions:Toast.ToastOptions = {
    text: "Hello World", 
    duration: Toast.DURATION.SHORT,
    position: Toast.POSITION.TOP //optional property
You can’t perform that action at this time.