Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-toast

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-toast

A NativeScript Toast Plugin for Android and iOS apps.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
100
increased by525%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 03 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc