JSRUN 用代码说话

CheckBox

编辑教程

Renders a boolean input.

This is a controlled component that requires an onValueChange callback that updates the value prop in order for the component to reflect user actions. If the value prop is not updated, the component will continue to render the supplied `value prop instead of the expected result of any user actions.

@keyword checkbox @keyword toggle

属性

disabled?: bool #

If true the user won't be able to toggle the checkbox. Default value is false.

onChange?: function #

Used in case the props change removes the component.

onValueChange?: function #

Invoked with the new value when the value changes.

testID?: string #

Used to locate this view in end-to-end tests.

value?: bool #

The value of the checkbox. If true the checkbox will be turned on. Default value is false.

JSRUN闪电教程系统是国内最先开创的教程维护系统, 所有工程师都可以参与共同维护的闪电教程,让知识的积累变得统一完整、自成体系。 大家可以一起参与进共编,让零散的知识点帮助更多的人。
X
支付宝
9.99
无法付款,请点击这里
金额: 0
备注:
转账时请填写正确的金额和备注信息,到账由人工处理,可能需要较长时间
如有疑问请联系QQ:565830900
正在生成二维码, 此过程可能需要15秒钟