New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

toast-ynqc

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toast-ynqc

this is toast package, it works on iOS and Android.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

toast-ynqc

A react native module to show toast, it works on iOS and Android.

NPM

Getting started

$ npm install toast-ynqc --save

Usage

import Toast from 'toast-ynqc';

Toast.info('ynqc');
Toast.info('loading...', 0);
Toast.info('ynqc', 3, () => {});
Toast.info('loading...', 0, () => {}, 1);
Toast.hide();

Methods

info()

static info(message, duration, closeCallback, closeOpacity)

Parameters:

NameTypedefaultrequiredDescription
messagestring-trueToast content
durationnumber3falseDelay time to close, unit is second
closeCallbackfunction-falseA callback function triggered when the toast is closed
closeOpacitynumber0falseOpacity when the toast is closed

notice When duration = 0, onClose is invalid, toast does not disappear; hidden toast needs to be called Toast.hide()

hide()

static hide()   // global destroy method of toast

Keywords

react-native

FAQs

Package last updated on 06 Dec 2018

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