2.0.0 • Published 5 years ago

nativescript-toast v2.0.0

Weekly downloads
134
License
MIT
Repository
github
Last release
5 years ago

NativeScript Toast Plugin

Build Status npm version npm downloads npm downloads

A NativeScript Toast Plugin for Android and iOS apps.

NPM

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

image

Demo

How to install and use this plugin? Watch it on YouTube!

Want simple example application to play with? nativescript-toast-example

Installation

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

Usage

var Toast = require("nativescript-toast");

// ...

var toast = Toast.makeText("Hello World");
toast.show();

Or via import:

import * as Toast from '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();

Development

  • Android SDK
  • Xcode 8+

npm version

2.0.0-develop-2

5 years ago

2.0.0-develop-7

5 years ago

2.0.0-develop-6

5 years ago

2.0.0-develop-5

5 years ago

2.0.0

5 years ago

2.0.0-develop-4

5 years ago

1.4.6-develop-3

5 years ago

2.0.0-preview

5 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

0.0.1

7 years ago

1.4.1

7 years ago

1.4.0

8 years ago

1.4.0-6

8 years ago

1.4.0-5

8 years ago

1.4.0-4

8 years ago

1.4.0-3

8 years ago

1.4.0-2

8 years ago

1.4.0-1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago