Skip to content

Commit

Permalink
publish v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycodeboy committed Dec 5, 2016
1 parent 1a27b55 commit 2daa706
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,18 @@ render() {
ref="toast"
style={{backgroundColor:'red'}}
position='top'
positionValue={200}
fadeInDuration={750}
fadeOutDuration={1000}
opacity={0.8}
textStyle={{color:'red'}}
/>
</View>
);
}
```


**更多用例:**

[SearchPage.js@GitHubPopular](https://github.com/crazycodeboy/GitHubPopular/blob/develop/js/page/SearchPage.js)
Expand All @@ -121,7 +127,11 @@ render() {
----------------- | -------- | -------- | ----------- | -----------
style | View.propTypes.style | true | {backgroundColor: 'black',opacity: OPACITY,borderRadius: 5,padding: 10,} | 自定义Toast的样式
position | PropTypes.oneOf(['top','center','bottom',]) |true | 'bottom' | 自定义Toast的位置

positionValue | React.PropTypes.number | true | 120 | 自定义Toast的位置
fadeInDuration | React.PropTypes.number | true | 500 | 自定义 toast淡入时间
fadeOutDuration | React.PropTypes.number | true | 500 | 自定义 toast淡出时间
opacity | React.PropTypes.number | true | 1 | 自定义 toast 的透明度
textStyle | View.propTypes.style | true | {color:'white'} | 自定义text的样式


方法 | 类型 | 可选 | 描述
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-easy-toast",
"version": "1.0.3",
"version": "1.0.5",
"description": "A react native module to show toast like android, it works on iOS and Android.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 2daa706

Please sign in to comment.