Skip to content

i1skn/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

Cross-platform Toast experience for React Native

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 77.8%
  • JavaScript 12.9%
  • Ruby 9.3%