Releases: ant-design/ant-design-mobile-rn
Releases · ant-design/ant-design-mobile-rn
5.2.3
5.2.2
5.2.1
2024-08-02
- 🔥 New Components
- 🔥 Toast
- 🆕 Add
icon
prop to support custom icons - 🆕 Add
position
prop for vertical display position #1353
- 🆕 Add
- 🔥 List
- 💄 Refactor internal DOM structure, cancel the
{flex:1}
layout ofextra
, and change it to{maxWith: "70%"}
. ~commit - 🛠 Simplified styles to better support and serve as the main component of Dark Mode.
- 💄 Refactor internal DOM structure, cancel the
- Provider
- 🆕 Add
onHaptics
for vibration feedback - 🛠 Simplified
theme
, complete Dark Mode. ~doc
- 🆕 Add
- NoticeBar
- 🆕 Complete
marqueeProps
prop, design reference https://github.com/justin-chu/react-fast-marquee
- 🆕 Complete
- Slider
- 💄 Refactor style, changed to brand color(
#108ee9
). - 🆕 Add new features such as
range
step
ticks
. - 🆕 Add dependence
react-native-reanimated
. - 🗑 Remove dependence
@react-native-community/slider
.
- 💄 Refactor style, changed to brand color(
- Stepper
- 💄 Refactor style, base on InputStyle.
- 🆕 Add
stringMode
, set value as string to support high precision decimals.
- SwipeAction
- 🆕 Add
closeOnTouchOutside
prop, base onuseClickAway
hook implementation. #1345 - 🆕 Complete more properties base on
react-native-gesture-handler/Swipeable
.
- 🆕 Add
- 🗑 Deprecate SegmentedControl component.
- 🗑 Remove dependence
@react-native-community/segmented-control
.
- 🗑 Remove dependence
- 🔥 新增组件
- 🔥 List
- 💄 重构内部DOM结构,取消
extra
的{flex:1}
布局,改为{maxWith: "70%"}
。 cc84d4f - 🛠 优化styles,更好支持并作为暗黑模式的主要组件。
- 💄 重构内部DOM结构,取消
- 🔥 Toast
- 🆕 新增
icon
属性,支持自定义图标。 - 🆕 新增
position
属性,控制垂直方向显示位置。 #1353
- 🆕 新增
- Provider
- 🆕 新增
onHaptics
属性,用于执行震动反馈事件,需自行选择引入触觉引擎。 - 🛠 精简
theme
主题变量,现支持暗黑模式。~doc
- 🆕 新增
- NoticeBar
- 🆕 完善
marqueeProps
属性,设计参考 https://github.com/justin-chu/react-fast-marquee 。
- 🆕 完善
- Slider
- 💄 重构样式,改为品牌色(
#108ee9
)。 - 🆕 添加新功能,例如
range
、step
、ticks
。 - 🆕 新增
react-native-reanimated
依赖。 - 🗑 移除
@react-native-community/slider
依赖。
- 💄 重构样式,改为品牌色(
- Stepper
- 💄 重构样式,改为基于 InputStyle。
- 🆕 新增
stringMode
属性,支持高精度小数,基于@rc-component/mini-decimal
依赖实现。
- SwipeAction
- 🆕 新增
closeOnTouchOutside
属性,基于useClickAway
钩子实现。 #1345 - 🆕 完善并支持
react-native-gesture-handler/Swipeable
的所有属性。
- 🆕 新增
- 🗑 废弃 SegmentedControl 组件。
- 🗑 移除
@react-native-community/segmented-control
依赖。
- 🗑 移除
5.1.1
5.1.0
2024-02-23
- Refactor Picker & PickerView
- Refactor DatePicker & DatePickerView
- 💄 Style 和 Base Props extends by Picker & PickerView
- 🆕 Support (
precision
filter
) new props - ⚡️ Deprecated (
)prop; date format by Day.jsmode
- ❗️Delete ImagePicker and remove dependence
@react-native-camera-roll/camera-roll
- Switch
- fix:
checked
prop support controlled mode #1325 - feat:
onChange
prop when the Promise is returned, the loading status will be displayed automatically
- fix:
- Provider localization
locale
prop supports now:中文
English
Русский
Español
Português - BR
Sverige
Persian
한국
- 重构 Picker & PickerView
- 重构 DatePicker & DatePickerView
- 💄 样式 和 基础属性 继承 Picker & PickerView
- 🆕 新增 (
precision
filter
) 属性支持 - ⚡️ 废弃(
)属性;时间格式引用Day.jsmode
- ❗️删除 ImagePicker 并移除
@react-native-camera-roll/camera-roll
依赖 - Switch
- fix:
checked
属性支持全受控模式 #1325 - feat:
onChange
属性当返回 Promise 时,会自动显示加载状态
- fix:
- Provider国际化
locale
属性现支持:中文
English
Русский
Español
Português - BR
Sverige
Persian
한국
5.0.4
5.0.3
2022-12-13
- fix: consistent
react-native-gesture-handler/Swipeable@2.8.0
#1271 @XionGuo37 - fix: update deps
@react-native-community/cameraroll
to@react-native-camera-roll/camera-roll
@aoarashi1988
5.0.2
5.0.1
5.0.0
2022-03-28
- 🔥
Expo
andreact-native-web
support #1220 - Checkbox & Radio
- Refactor Switch
- 🆕 Switch add (
loading
checkedChildren
unCheckedChildren
) new props - 🆕 Switch support (
trackColor
thumbColor
thumbTintColor
) native props #507 - 🆕 Switch support
styles
prop to custom style
- 🆕 Switch add (
- Toast
- 🆕
content
's type supportReact.ReactNode
@iShawnWang - 🐞 Fix the
onClose
callback not called when removeAll @erichua23
- 🆕
- Carousel
- 🔥 Refactor Carousel with remove dependence
react-native-pager-view
@1uokun - 💄 Carousel extends by
ScrollView {pagingEnabled}
to support web
- 🔥 Refactor Carousel with remove dependence
- 🔥 Refactor Tabs with remove dependence
react-native-pager-view
and extends byCarousel
- 💄 ActionSheet create
index.native.tsx
to differentiateweb
andnative
Platform #1219 - 🐞 Fix Flex support
flex
value 0 inFlex.Item
@laoxubuer
- 🔥 全面支持
Expo
和react-native-web
#1220 - 重构 Checkbox & Radio
- 重构 Switch
- 🆕 Switch新增 (
loading
checkedChildren
unCheckedChildren
) 属性支持 - 🆕 Switch新增 (
trackColor
thumbColor
thumbTintColor
) 原生属性支持 #507 - 🆕 Switch 新增
styles
属性已自定义样式
- 🆕 Switch新增 (
- Toast
- 🆕 Toast
content
属性类型新增React.ReactNode
@iShawnWang - 🐞 修复
Toast.removeAll
调用后无法回调onClose
bug @erichua23
- 🆕 Toast
- Carousel
- 🔥 重构Carousel,移除
react-native-pager-view
依赖 @1uokun - 💄 Carousel基于
ScrollView {pagingEnabled}
开发以支持web
端
- 🔥 重构Carousel,移除
- 🔥 重构Tabs,移除
react-native-pager-view
依赖,基于Carousel
开发 - 💄 ActionSheet 创建
index.native.tsx
文件以此区分web
端和native
端 #1219 - 🐞 修复 Flex
Flex.Item
组件flex
属性不能为 0 bug @laoxubuer