gpt4 book ai didi

ios - React Native 复选框显示为红点

转载 作者:行者123 更新时间:2023-11-29 11:29:17 25 4
gpt4 key购买 nike

React Native 复选框在 Android 中显示正常,但在 iOS 中显示为一个小红点。复选框在 ios 中有效还是仅在 android 中有效?

<CheckBox
label='I accept the Terms and Conditions'
value={this.state.checked}
onValueChange={() => this.setState({ checked: !this.state.checked })}
/>

最佳答案

react-native 提供的 CheckBox 组件仅适用于 Android,因为它在 documentation 中非常清楚地说明了以下内容

Renders a boolean input (Android only).

它也没有 label 属性。

它列出的 Prop 是:

关于ios - React Native 复选框显示为红点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55191528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com