Skip to content

Commit 9990a83

Browse files
committed
update
1 parent df14579 commit 9990a83

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A react native module to show toast like android, it works on iOS and Android.
1414
## Installation
1515

1616
* 1.Run `npm i react-native-easy-toast --save`
17-
* 2.`import Toast, {DURATION} from 'react-native-toast-easy'`
17+
* 2.`import Toast, {DURATION} from 'react-native-easy-toast'`
1818

1919
## Demo
2020
* [Examples](https://github.com/crazycodeboy/react-native-easy-toast/tree/master/examples)
@@ -23,9 +23,9 @@ A react native module to show toast like android, it works on iOS and Android.
2323

2424
## Getting started
2525

26-
Add `react-native-toast-easy` to your js file.
26+
Add `react-native-easy-toast` to your js file.
2727

28-
`import Toast, {DURATION} from 'react-native-toast-easy'`
28+
`import Toast, {DURATION} from 'react-native-easy-toast'`
2929

3030
Inside your component's render method, use Toast:
3131

@@ -83,9 +83,9 @@ render() {
8383
}}>
8484
<Text>Press me</Text>
8585
</TouchableHighlight>
86-
<Toast
87-
ref="toast"
88-
style={{backgroundColor:'red'}}
86+
<Toast
87+
ref="toast"
88+
style={{backgroundColor:'red'}}
8989
position='top'
9090
/>
9191
</View>

README.zh.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## 安装
1313

1414
* 1.在终端运行 `npm i react-native-easy-toast --save`
15-
* 2.在要使用`Toast`的js文件中添加`import Toast, {DURATION} from 'react-native-toast-easy'`
15+
* 2.在要使用`Toast`的js文件中添加`import Toast, {DURATION} from 'react-native-easy-toast'`
1616

1717
## Demo
1818
* [Examples](https://github.com/crazycodeboy/react-native-easy-toast/tree/master/examples)
@@ -23,9 +23,9 @@
2323

2424
>第一步:
2525
26-
在你的js文件中导入 `react-native-toast-easy`
26+
在你的js文件中导入 `react-native-easy-toast`
2727

28-
`import Toast, {DURATION} from 'react-native-toast-easy'`
28+
`import Toast, {DURATION} from 'react-native-easy-toast'`
2929

3030
>第二步:
3131
@@ -45,16 +45,16 @@
4545

4646
>注意: 请将`<Toast ref="toast"/>` 放在最外层View的底部.
4747
48-
>第三步:
48+
>第三步:
4949
5050
使用:
5151

5252
```javascript
5353
this.refs.toast.show('hello world!');
5454
```
5555

56-
在需要弹出提示框时使用上面代码即可。
57-
56+
在需要弹出提示框时使用上面代码即可。
57+
5858

5959

6060
### 用例
@@ -89,9 +89,9 @@ render() {
8989
}}>
9090
<Text>Press me</Text>
9191
</TouchableHighlight>
92-
<Toast
93-
ref="toast"
94-
style={{backgroundColor:'red'}}
92+
<Toast
93+
ref="toast"
94+
style={{backgroundColor:'red'}}
9595
position='top'
9696
/>
9797
</View>
@@ -117,7 +117,7 @@ position | PropTypes.oneOf(['top','center','bottom',]) |true | 'bottom' | 自
117117

118118
方法 | 类型 | 可选 | 描述
119119
----------------- | -------- | -------- | ----------- | -----------
120-
show(text, duration) | function | false | 弹出提示框,单位是毫秒
120+
show(text, duration) | function | false | 弹出提示框,单位是毫秒
121121
close() | function | true | 手动关闭提示框
122122

123123

@@ -130,5 +130,3 @@ close() | function | true | 手动关闭提示框
130130

131131
**MIT Licensed**
132132
大家可以自由复制和转载。
133-
134-

0 commit comments

Comments
 (0)