渲染一个Boolean输入 这是一个“受控组件”(controlled component)。你必须使用onValueChange回调来更新value属性以响应用户的操作。如果不更新value属性,组件只会按一开始给定的value值来渲染且保持不变。 注意:CheckBox只在Android端实现,IOS端暂未实现 @keyword checkbox @keyword toggle 属性 ViewPropTypes props... # disabled?: bool # 如果为true,这个组件不能进行交互,默认为false onChange?: function # Used in case the props change removes the component. onValueChange?: function # 当值改变的时候调用此回调函数,参数为新的值。 testID?: string # 用来在端到端测试中定位此视图。 value?: bool # 表示CheckBox是否打开。默认为false(关闭状态)。