Skip to content

shakepay/react-native-simple-toast

 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.4%
  • JavaScript 1.8%
  • Ruby 1.8%