作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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 是:
禁用
onChange
onValueChange
测试ID
值
关于ios - React Native 复选框显示为红点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55191528/
我正在使用 codeigniter,我的程序在本地主机中运行良好,但在网上出现错误。很难描述,但一切就像图片一样: 更糟糕的是,如果我在 js 中编写这样的代码: var a='{"status":0
我想知道是否有人知道您是否可以使用 JQuery Mobile 在页脚选项卡上添加红点/圆圈? 请参阅所附的示例图片。 最佳答案 你可以试试: http://thrivingkings.com/bad
我是一名优秀的程序员,十分优秀!