/react-native-simple-toast

Simple Toast for React-Native.

Primary LanguageObjective-C

react-native-simple-toast

React Native Toast component for both Android and iOS. It just let iOS have the same toast performance with Android. Using scalessec/Toast for iOS;

Install

You can use rnpm to install native component easily;

npm install react-native-simple-toast --save
rnpm link

Usage

It's just the same as ToastAndroid

import Toast from 'react-native-simple-toast';

Toast.show('This is a toast.');
Toast.show('This is a long toast.',Toast.LONG);
Toast.showWithGravity('this is toast!', Toast.LONG, Toast.Bottom);
Toast.showWithGravityOffset('this is toast!', Toast.LONG, Toast.BOTTOM, 0, 0);