You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@ichong/react-native-toast

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ichong/react-native-toast

toast提示

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
3
Weekly downloads
 
Created
Source

react-native-toast

react-native version > 0.4

IOS: 基于 MBProgressHUD Android: 基于原生Toast 和 KProgressHUD

作者

QQ: 289459798 QQ群: 161263093 欢迎更多的喜欢开源的小伙伴加入

IOS效果

Android效果

目前之后上图菜单1和菜单2的效果

安装

npm intsall react-native-zzy-toast --save

react-native link

使用

import Toast from 'react-native-toast';
...
Toast.show('提示信息');

Toast.showLoading('加载中');

Toast.hide();

API

/**
 * 显示文字提示
 * @param message
 */
static show(message);

/**
 * 显示loading
 * @param message
 */
static showLoading(message);

/**
 * 隐藏提示信息
 */
static hide();

Keywords

react-native

FAQs

Package last updated on 04 Dec 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