Movatterモバイル変換


[0]ホーム

URL:


Checkbox View Source

A standalone checkbox component.

If you're looking to use multiple checkboxes in the same "form", check out theCheckbox Group component.

Usage

...import { Checkbox } from 'react-native-material-design';render() {    return (        <View>            <Checkbox value="accepted" label="I agree to the terms and conditions" />        </View>     );}...

Props

PropTypeDescriptionRequiredDefault
labelstringThe supporting text of the checkbox, which is triggers a "check" when pressedfalse
themeTHEME_NAMEfalselight
primaryPRIMARY_COLORSfalsePRIMARY
valuestring, numberThe value which is passed back to the onCheck function when checkedtrue
checkedboolIf true, the checkbox is checked when the component is mountedfalsefalse
disabledboolWhether to render the checkbox as disabled. If disabled the component will not respond to any touchesfalsefalse
onCheckfuncCalled when the checkbox is checked. The value of the checkbox is passsed into this functionfalse

[8]ページ先頭

©2009-2025 Movatter.jp