ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.09k stars 611 forks source link

[Bug] Radio组件的defaultCheck属性在iOS和harmony上失效,无法正常默认选取 #1380

Closed Panlichen1996 closed 4 days ago

Panlichen1996 commented 1 month ago

💬 前提强调

🙋 描述详情/重现步骤

在iOS以及harmonyOS上,Radio组件的defaultCheck属性无法正常生效。

<List renderHeader="基本用法">
          <List.Item thumb={<Radio defaultChecked={true}>defaultChecked=true</Radio>} />
          <List.Item thumb={<Radio defaultChecked={false}>defaultChecked=false</Radio>} />
</List>

🔴 版本

9.8.0

💻 运行环境

iOS

⚫️ npx react-native info输出信息

System: OS: Windows 10 10.0.19045 CPU: (8) ia32 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz Memory: 4.02 GB / 15.84 GB Binaries: Node: version: 18.14.1 path: D:\software\nodejs\node.EXE Yarn: version: 1.22.22 path: D:\software\nodejs\node_global\yarn.CMD npm: version: 9.8.0 path: D:\software\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels:

补充说明

这个问题在ios和harmony上都可以复现。

1uokun commented 4 days ago

fixed in 5.3.0