-
Notifications
You must be signed in to change notification settings - Fork 21
Changelog
王大根 edited this page Jan 8, 2018
·
6 revisions
{n1}.{n2}.{n3}
n1:❤️ 重大更新
n2:💛 影响之前版本使用方式的更新(需要用户适配)
n3:💚 不影响之前版本使用方式的更新(不需要用户适配)
- 💚 Bugfix: fix the bug that it does not work if the prop
duration
is changed.(#21
) -@xiongcaichang
- 💚 Bugfix: fix the bug that when the prop
source
changes buturi
is still the same, the holder will show and never hide.
- 💚 new props
buttonStyle
: style of button - 💚 new props
buttonTouchableStyle
: style of Touchable component
- 💚 new component for displaying progress:
Progress
- 💚 new props
bottomLeftButton
: config the button in bottom-left corner of the keyboard
- 💚 Bugfix: fix display bug when there is only one button that is in touching state
- 💚 new props
hitSlop
: defines how far a touch event can start away from buttons in left and right
- 💚 new props
btnTextNumberOfLines
: used to truncate the button's text with an ellipsis after computing the text layout
- 💛 TabBar items will divide space equally and the touchable area will be extended as far as possible. You may need to add
flex: 1
in style of TabBar item components to adapte to this change.
Now badge will self-adjust to the length of text
, and the maxWidth of badge is the width of children
.
- 💛 remove props
characterWidth
: because of the new self-adjusting strategy - 💚 new props
dot
: whether to use dot - 💚 new props
dotStyle
: the style of dot
- 💛 import
PropTypes
fromprop-types
instead ofreact
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when ActionSheet has shown - 💚 new props
onHide
: a callback called when ActionSheet has hidden
- 💚 new props
onPanResponderGrant
: a callback called when the gesture starts - 💚 new props
onPanResponderRelease
: a callback called when the gesture stops
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when Dialog has shown - 💚 new props
onHide
: a callback called when Dialog has hidden
onPanResponderGrant
andonPanResponderRelease
can be used to fix the bug that CardView will not work in ScrollView. For more infomation: CardView · rnxteam/rnx-ui Wiki
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when HeaderedSheet has shown - 💛 props
onClose
is renamedonHide
- 💚 new props
resizeMode
: Determines how to resize the image when the frame doesn't match the raw image dimensions.
For more infomation: Image
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when Loading has shown - 💚 new props
onHide
: a callback called when Loading has hidden
- 💚 new props
onShow
: a callback called when Overlay has shown - 💚 new props
onHide
: a callback called when Overlay has hidden
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when Sheet has shown - 💛 props
onClose
is renamedonHide
- 💚 fix the bug that after a Sheet has been shown, when the height of the content changes, the height of the Sheet will not change (
12ee9cc
) -@reoszo
- 💚 new props
overlayAnimationDuration
: duration of Overlay animation - 💚 new props
onShow
: a callback called when ToolTip has shown - 💚 new props
onHide
: a callback called when ToolTip has hidden
- 💚 Bugfix: fix props
duration
not work in the hide animation
- 💚 新增属性
adderUnderlayColor
:加法元素触摸时底色 - 💚 新增属性
subtracterUnderlayColor
:减法元素触摸时底色
- 💚 修复安卓下只显示一行菜单时下边框无圆角的 bug
- 💚 修复隐藏之后快速展示时不显示内容的 bug
- 💚 修复应用状态切换时倒计时可能不准的 bug
- 💚 新增属性
autoRemoveHolder
:图片加载完成是否移除 holder
- 💚 新增属性
useAnimation
:是否使用动画
- 💚 新增属性
useOverlayAnimation
:是否使用 Overlay 动画
- 💚 新增属性
useOverlayAnimation
:是否使用 Overlay 动画
- 💚 新增属性
useOverlayAnimation
:是否使用 Overlay 动画
- 💚 现在自带鱼眼效果
- 💛 修改方法
scrollToCard
:更名为scrollTo
,并接受第二个参数,标示是否使用动画 - 💚 新增属性
scaleCoefficient
:当前项放大比率
- 💚 新增属性
hitSlop
:按钮热区
- 💚 新增属性
style
:自定义样式
- 💛 原
Alert
组件更名为Dialog
- 💚 新增警告弹框组件:
Alert
- 💚 新增确认弹框组件:
Confirm
- 💚 新增自动滚动的文本框组件:
DynamicText
- 💚 新增属性
onPass
:卡片经过时的回调,参数为当前经过的卡片序号 - 💚 新增属性
onStartReached
:到达顶部回调 - 💚 新增属性
onEndReached
:到达底部回调
- 💚 添加属性
pointerEvents
:允许遮罩层不作为触控事件目标
- 💚 添加属性
pointerEvents
:允许遮罩层不作为触控事件目标
- 💚 优化 CardView 滚动效果:不再是一次只能移动一个了
- 💚 修复在 iPhone 6s 以上苹果手机内部元素点击失效的 bug
- 💚 新增卡片视图组件:
CardView
- 💛 删除属性
pointerEvents
- 💛 删除属性
pointerEvents
- 💚 修改样式:文字黑色背景默认有 5dp 的圆角
- 💚 修改属性
statusBarBgColor
:默认值改为transparent
- 💚 修改属性
onChangeText
:新增第二个参数,传入name
属性值
- 💚 修改属性
onChangeText
:新增第二个参数,传入name
属性值
- 💚 新增页面容器组件:
All
- 💚 新增页面容器组件:
ImgRollView
- 💛 兼容至 react-native
0.41.2
- 💛 左右按钮可点击区域贴边
- 💚 新增有占位元素的文本显示组件:
PlaceholderText
- 💚 样式兼容安卓
- 💚 新增上拉按钮组组件:
ActionSheet
- 💚 新增图片选择组件:
ImgPicker
- 💚 修正更改
defaultValue
不会触发placeholder
显隐的 bug
- 💚 新增可以自定义占位元素的输入框组件:
PlaceholderInput
- 💚 新增属性
leftBtnDisabled
:左侧按钮禁用 - 💚 新增属性
rightBtnDisabled
:右侧按钮禁用
- 💚 新增属性
characterWidth
:单个字符宽度
❤️ Hello RNX UI.