Skip to content

Commit

Permalink
0.17.3 (#12)
Browse files Browse the repository at this point in the history
* SmsCaptchaInput 修复应用状态切换时倒计时可能不准的 bug (#7)

* ImgHolder 增加图片加载完成移除占位元素的功能 (#8)

* 更新 ImgHolder组件,更新内容为:图片加载完成后移除底图

* 更新ImgHolder组件,新增removeBaseImg配置项,设置图片加载完成是否移除底图

* ImgHolder 添加图片加载完移除占位元素的功能

* 补充 ImgHolder 的 changelog

* rm useless file

* up doc

* AddAndSubtract 新增按钮触摸时变化颜色属性

* up readme

* ActionSheet:修复安卓下只显示一行菜单时下边框无圆角的 bug

* eslint 使用缓存

* 更新文档图片 (#11)

* up

* 搞到 Overlay 了
  • Loading branch information
dragonwong authored Jul 10, 2017
1 parent 2fe27e1 commit c68ba3a
Show file tree
Hide file tree
Showing 23 changed files with 68 additions and 21 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ android/app/libs
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

#
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots

# eslint-cache
#
.eslintcache
3 changes: 1 addition & 2 deletions ActionSheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

## Demo

![ActionSheet](http://wx4.sinaimg.cn/mw690/4c8b519dly1feq4asyl44g20hs0wsguv.gif)

<image src="http://wx4.sinaimg.cn/mw690/4c8b519dly1feq4asyl44g20hs0wsguv.gif" width="320" />

## Example

Expand Down
3 changes: 2 additions & 1 deletion ActionSheet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class ActionSheet extends Component {
if (isAndroid) {
if (index === 0) {
btnStyle.push(styles.btnFirst);
} else if (index === this.props.btnList.length - 1) {
}
if (index === this.props.btnList.length - 1) {
btnStyle.push(styles.btnLast);
}
}
Expand Down
21 changes: 18 additions & 3 deletions AddAndSubtract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Demo

![AddAndSubtract](http://wx3.sinaimg.cn/mw690/4c8b519dly1fcaq7v2pnvg20ho0wgh0z.gif)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dly1fcaq7v2pnvg20ho0wgh0z.gif" width="320" />

## Example

Expand Down Expand Up @@ -56,9 +56,19 @@ AddAndSubtract.propTypes = {
// 自定义样式
style: View.propTypes.style,
// 加法按钮样式
adderStyle: View.propTypes.style,
adderBtnStyle: View.propTypes.style,
// 加法元素样式
adderStyle: View.propTypes.style,
// 加法元素触摸时底色
adderUnderlayColor: TouchableHighlight.propTypes.underlayColor,
// 减法按钮容器样式
subtracterWrapperStyle: View.propTypes.style,
// 减法按钮样式
subtracterStyle: View.propTypes.style,
subtracterBtnStyle: View.propTypes.style,
// 减法元素样式
subtracterStyle: View.propTypes.style,
// 减法元素触摸时底色
subtracterUnderlayColor: TouchableHighlight.propTypes.underlayColor,
// 自定义字体样式
textStyle: Text.propTypes.style,
// 加法按钮
Expand All @@ -78,8 +88,13 @@ AddAndSubtract.defaultProps = {
easing: t => t,
btnWidth: 30,
style: null,
adderBtnStyle: null,
adderStyle: null,
adderUnderlayColor: '#bbb',
subtracterWrapperStyle: null,
subtracterBtnStyle: null,
subtracterStyle: null,
subtracterUnderlayColor: '#bbb',
textStyle: null,
adder: <Text style={styles.adderText}>+</Text>,
subtracter: <Text style={styles.subtracterText}>-</Text>,
Expand Down
9 changes: 8 additions & 1 deletion AddAndSubtract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AddAndSubtract extends Component {
}, this.props.subtracterWrapperStyle]}
>
<TouchableHighlight
underlayColor="#ddd"
underlayColor={this.props.subtracterUnderlayColor}
style={[btnStyle, this.props.subtracterBtnStyle]}
onPress={this.props.onPressSubtracter}
hitSlop={this.props.hitSlop}
Expand All @@ -118,6 +118,7 @@ class AddAndSubtract extends Component {
</Text>
</View>
<TouchableHighlight
underlayColor={this.props.adderUnderlayColor}
style={[btnStyle, this.props.adderBtnStyle]}
onPress={this.props.onPressAdder}
hitSlop={this.props.hitSlop}
Expand Down Expand Up @@ -167,12 +168,16 @@ AddAndSubtract.propTypes = {
adderBtnStyle: View.propTypes.style,
// 加法元素样式
adderStyle: View.propTypes.style,
// 加法元素触摸时底色
adderUnderlayColor: TouchableHighlight.propTypes.underlayColor,
// 减法按钮容器样式
subtracterWrapperStyle: View.propTypes.style,
// 减法按钮样式
subtracterBtnStyle: View.propTypes.style,
// 减法元素样式
subtracterStyle: View.propTypes.style,
// 减法元素触摸时底色
subtracterUnderlayColor: TouchableHighlight.propTypes.underlayColor,
// 自定义字体样式
textStyle: Text.propTypes.style,
// 加法按钮
Expand All @@ -194,9 +199,11 @@ AddAndSubtract.defaultProps = {
style: null,
adderBtnStyle: null,
adderStyle: null,
adderUnderlayColor: '#bbb',
subtracterWrapperStyle: null,
subtracterBtnStyle: null,
subtracterStyle: null,
subtracterUnderlayColor: '#bbb',
textStyle: null,
adder: <Text style={styles.adderText}>+</Text>,
subtracter: <Text style={styles.subtracterText}>-</Text>,
Expand Down
2 changes: 1 addition & 1 deletion Alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Demo

![Alert](http://wx4.sinaimg.cn/mw690/4c8b519dly1fduijhj36dg20hs0ws48p.gif)
<image src="http://wx4.sinaimg.cn/mw690/4c8b519dly1fduijhj36dg20hs0ws48p.gif" width="320" />

## Props

Expand Down
3 changes: 2 additions & 1 deletion Badge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

## Demo

![](demo.png)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dly1fgncst1pfhj20o0130gny.jpg" width="320" />


## Example

Expand Down
Binary file removed Badge/demo.png
Binary file not shown.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ n2:💛 影响之前版本使用方式的更新(需要用户适配)
n3:💚 不影响之前版本使用方式的更新(不需要用户适配)
```

## 0.17.3

### AddAndSubtract

- 💚 新增属性 `adderUnderlayColor`:加法元素触摸时底色
- 💚 新增属性 `subtracterUnderlayColor`:减法元素触摸时底色

### ActionSheet

- 💚 修复安卓下只显示一行菜单时下边框无圆角的 bug

## 0.17.2

### Sheet

- 💚 修复隐藏之后快速展示时不显示内容的 bug

### SmsCaptchaInput
Expand Down
2 changes: 1 addition & 1 deletion CardView/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CardView 会为卡片添加 `isActiveRnxUiCardView` 属性,激活卡片值为

## Demo

![CardView](http://wx3.sinaimg.cn/mw690/4c8b519dly1fdgvohgt53g20hs0wsaip.gif)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dly1fdgvohgt53g20hs0wsaip.gif" width="320" />

## Example

Expand Down
2 changes: 1 addition & 1 deletion Confirm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Demo

![Confirm](http://wx3.sinaimg.cn/mw690/4c8b519dly1fdulcvgrcvg20hs0ws7h6.gif)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dly1fdulcvgrcvg20hs0ws7h6.gif" width="320" />

## Props

Expand Down
3 changes: 2 additions & 1 deletion Dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

## Demo

![Dialog](http://wx3.sinaimg.cn/mw690/4c8b519dly1fdulkkgmsog20hs0wsn81.gif)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dly1fdulkkgmsog20hs0wsn81.gif" width="320" />


## Example

Expand Down
2 changes: 1 addition & 1 deletion Drop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Demo

![Drop](http://wx1.sinaimg.cn/mw690/4c8b519dly1fbp9qg0mlog20ho0wghdw.gif)
<image src="http://wx1.sinaimg.cn/mw690/4c8b519dly1fbp9qg0mlog20ho0wghdw.gif" width="320" />

## Dropper

Expand Down
2 changes: 1 addition & 1 deletion DynamicText/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DynamicText 有 `maxWidth` 属性可以配置支持的最大的文本长度,

## Demo

![DynamicText](http://wx4.sinaimg.cn/mw690/4c8b519dly1fdrlqh8ujsg20hs0ws4qq.gif)
<image src="http://wx4.sinaimg.cn/mw690/4c8b519dly1fdrlqh8ujsg20hs0ws4qq.gif" width="320" />

## Example

Expand Down
2 changes: 1 addition & 1 deletion HeaderedSheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Demo

![navBar demo](demo.gif)
<image src="http://wx4.sinaimg.cn/mw690/4c8b519dgy1fh4agk0ft3g20hc0wk4qp.gif" width="320" />

## Props

Expand Down
Binary file removed HeaderedSheet/demo.gif
Binary file not shown.
4 changes: 4 additions & 0 deletions ImgPicker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

**图片选择组件**

## Demo

<image src="http://wx3.sinaimg.cn/mw690/4c8b519dgy1fh4arl9n4rg20nc12c47w.gif" width="320" />

## Example

```js
Expand Down
4 changes: 4 additions & 0 deletions ImgRollView/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

CameraRoll 提供了访问本地相册的功能。在iOS上使用这个模块之前,你需要先链接 RCTCameraRoll 库,具体做法请参考[链接原生库文档](https://reactnative.cn/docs/0.42/linking-libraries-ios.html)。另外,从 iOS10 开始,访问相册需要用户授权。你需要在 `Info.plist` 中添加一条名为 `NSCameraUsageDescription` 的键,然后在其值中填写向用户请求权限的具体描述。编辑完成后这个键在 Xcode 中实际会显示为 `Privacy - Camera Usage Description`

## Demo

<image src="http://wx4.sinaimg.cn/mw690/4c8b519dgy1fh4av823tqg20nc12cquv.gif" width="320" />

## Example

```js
Expand Down
2 changes: 1 addition & 1 deletion NavBar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Demo

![navBar demo](demo.png)
<image src="http://wx3.sinaimg.cn/mw690/4c8b519dgy1fh4b239blbg20nc12ctfn.gif" width="320" />

## Props

Expand Down
Binary file removed NavBar/demo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion NumericKeyboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Demo

![NumericKeyboard](http://wx2.sinaimg.cn/mw690/4c8b519dly1fbztgpbw6gg20ho0wgx6p.gif)
<image src="http://wx2.sinaimg.cn/mw690/4c8b519dly1fbztgpbw6gg20ho0wgx6p.gif" width="320" />

## Example

Expand Down
2 changes: 1 addition & 1 deletion Overlay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## Demo

![Overlay](http://wx2.sinaimg.cn/mw690/4c8b519dly1fdlfglw0mfg20hs0wsn3p.gif)
<image src="http://wx2.sinaimg.cn/mw690/4c8b519dly1fdlfglw0mfg20hs0wsn3p.gif" width="320" />

## Props

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"lint": "eslint . *.js",
"lint": "eslint . *.js --cache",
"test": "jest"
},
"license": "MIT",
Expand Down

0 comments on commit c68ba3a

Please sign in to comment.