MPuhakka / react-native-simple-toast

Simple Toast for React-Native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-simple-toast npm version

React Native Toast component for both Android and iOS. It just lets iOS users have the same toast experience as on Android. Using scalessec/Toast on iOS and the standard ToastAndroid on Android;

This is based on work at https://github.com/xgfe/react-native-simple-toast.

Install

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

then rebuild your project

Usage

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 a long toast at the top.', Toast.LONG, Toast.TOP)

License

MIT

About

Simple Toast for React-Native.


Languages

Language:Objective-C 98.2%Language:JavaScript 1.8%