Skip to content

Latest commit

 

History

History
 
 

universal-toast

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

universal-toast npm

An universal toast

Install

$ npm install universal-toast --save

Usage

import Toast from 'universal-toast';

Toast.show('Hi');

APIS

Toast.show(message, duration)

  • message: Required, String, the text to toast
  • duration: Optional, Number, unit ms, the duration of the toast. May be Toast.SHORT(2500ms) or Toast.LONG(3500ms)