by M Danish Siddiqui

Provides common API to create toast notifications for android and iOS


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", dutation: Toast.DURATION.SHORT};;

65 downloads in the last month

15 downloads in the last week

1 downloads in the last day