Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
Panlichen1996 opened this issue Sep 24, 2024 · 1 comment
Closed
1 task done
Labels

Comments

@Panlichen1996
Copy link

💬 前提强调

  • I have searched the issues of this repository and believe that this is not a duplicate.

🙋 描述详情/重现步骤

在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:
- "17"
- "18"
- "28"
- "30"
- "33"
- "34"
- "34"
Build Tools:
- 29.0.1
- 29.0.2
- 30.0.2
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
System Images:
- android-33-ext4 | Google Play Intel x86_64 Atom
- android-33-ext5 | Google Play Intel x86_64 Atom
- android-33 | Google Play Intel x86_64 Atom
- android-33 | Google APIs ATD Intel x86_64 Atom
- android-34-ext8 | Google Play Intel x86_64 Atom
- android-34 | Google Play Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 17.0.3.1
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.5
wanted: 0.72.5
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

补充说明

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

@1uokun 1uokun mentioned this issue Nov 13, 2024
1uokun added a commit that referenced this issue Nov 14, 2024
* feat: Modal add useModal(#1383)

* feat: Picker support modalType(#1383)

* feat: Carousel support onScrollAnimationEnd

* fix:[Form] fix Require cycle

* feat:[typescript] export all component types

* feat: Slider add disabledStep、onSlidingStart、onSlidingComplete prop

* fix: Tooltip safe floatingStyles

* chore: test

* feat: Slider add tapToSeek prop

* feat: typescript@5.6.2

* fix: Picker & DatePicker defaultValue prop works(#1331)

* fix: DatePicker children extra placeholder

* feat: refactor useTheme by lodash.mergewith

* 代码暂存

* feat: Toast support useToast (#1388)

* fix: Switch styles doc

* feat: Modal support animationDuration prop(#1386)

* Temp 5.2.4 (#1392)

* feat: refactor Slider

* feat: Toast support useToast (#1388)

* fix: Switch styles doc

* feat: Modal support animationDuration prop(#1386)

* feat: 5.3.0

* feat: react-native-reanimated@3.x not support jest snap (software-mansion/react-native-reanimated#6645)

* bump 5.3.0

* fix: Switch style in 0.76 (#1389)

* fix: Radio defaultCheck not works (#1380)

* feat: Upgrade react-native@0.75+
@1uokun
Copy link
Collaborator

1uokun commented Nov 14, 2024

fixed in 5.3.0

@1uokun 1uokun closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants