Skip to content

Commit 47762bf

Browse files
author
罗瑞东
committed
chore(readme): upload README.md
1 parent a14182f commit 47762bf

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# react-native-simple-toast
2+
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;
3+
4+
## Install
5+
You can use [rnpm](https://github.com/rnpm/rnpm) to install native component easily;
6+
7+
```bash
8+
npm install react-native-simple-toast --save
9+
rnpm link
10+
```
11+
12+
## Usage
13+
14+
It's just the same as [ToastAndroid](http://facebook.github.io/react-native/docs/toastandroid.html)
15+
16+
```javascript
17+
import Toast from 'react-native-simple-toast';
18+
19+
Toast.show('This is a toast.');
20+
Toast.show('This is a long toast.',Toast.LONG);
21+
```

0 commit comments

Comments
 (0)