https://github.com/xgfe/react-native-simple-toast
Simple Toast for React-Native.
https://github.com/xgfe/react-native-simple-toast
Last synced: 18 days ago
JSON representation
Simple Toast for React-Native.
- Host: GitHub
- URL: https://github.com/xgfe/react-native-simple-toast
- Owner: xgfe
- Created: 2016-07-01T05:28:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T08:35:05.000Z (about 6 years ago)
- Last Synced: 2025-03-27T16:53:02.613Z (about 2 months ago)
- Language: Objective-C
- Size: 138 KB
- Stars: 130
- Watchers: 8
- Forks: 50
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/scalessec/Toast) for iOS;## Install
You can use [rnpm](https://github.com/rnpm/rnpm) to install native component easily;```bash
npm install react-native-simple-toast --save
rnpm link
```## Usage
It's just the same as [ToastAndroid](http://facebook.github.io/react-native/docs/toastandroid.html)
```javascript
import Toast from 'react-native-simple-toast';Toast.show('This is a toast.');
Toast.show('This is a long toast.',Toast.LONG);
```