Giter VIP home page Giter VIP logo

nativescript-toast's Introduction

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

nativescript-toast's People

Contributors

hypery2k avatar championswimmer avatar eddyverbruggen avatar alixandru avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.