Skip to content

Commit 2daa706

Browse files
committed
publish v1.0.5
1 parent 1a27b55 commit 2daa706

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

README.zh.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,18 @@ render() {
102102
ref="toast"
103103
style={{backgroundColor:'red'}}
104104
position='top'
105+
positionValue={200}
106+
fadeInDuration={750}
107+
fadeOutDuration={1000}
108+
opacity={0.8}
109+
textStyle={{color:'red'}}
105110
/>
106111
</View>
107112
);
108113
}
109114
```
110115

116+
111117
**更多用例:**
112118

113119
[SearchPage.js@GitHubPopular](https://github.com/crazycodeboy/GitHubPopular/blob/develop/js/page/SearchPage.js)
@@ -121,7 +127,11 @@ render() {
121127
----------------- | -------- | -------- | ----------- | -----------
122128
style | View.propTypes.style | true | {backgroundColor: 'black',opacity: OPACITY,borderRadius: 5,padding: 10,} | 自定义Toast的样式
123129
position | PropTypes.oneOf(['top','center','bottom',]) |true | 'bottom' | 自定义Toast的位置
124-
130+
positionValue | React.PropTypes.number | true | 120 | 自定义Toast的位置
131+
fadeInDuration | React.PropTypes.number | true | 500 | 自定义 toast淡入时间
132+
fadeOutDuration | React.PropTypes.number | true | 500 | 自定义 toast淡出时间
133+
opacity | React.PropTypes.number | true | 1 | 自定义 toast 的透明度
134+
textStyle | View.propTypes.style | true | {color:'white'} | 自定义text的样式
125135

126136

127137
方法 | 类型 | 可选 | 描述

examples/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"idiom" : "iphone",
515
"size" : "29x29",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-easy-toast",
3-
"version": "1.0.3",
3+
"version": "1.0.5",
44
"description": "A react native module to show toast like android, it works on iOS and Android.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)