CheckBox
CheckBoxes allow users to complete tasks that involve making choices such as selecting options, or switching settings - On or Off.
It provides a clear visual of either a true or false choice.
#
Usage#
Props#
CheckBox- Component
- center
- checked
- checkedColor
- checkedIcon
- checkedTitle
- containerStyle
- fontFamily
- iconRight
- iconType
- onIconPress
- onLongIconPress
- right
- size
- textStyle
- title
- titleProps
- uncheckedColor
- uncheckedIcon
- wrapperStyle
#
Reference#
CheckBox#
ComponentSpecify React Native component for main button.
Type | Default |
---|---|
React Component | None |
#
centerAligns checkbox to center.
Type | Default |
---|---|
boolean | false |
#
checkedFlag for checking the icon.
Type | Default |
---|---|
boolean | false |
#
checkedColorDefault checked color.
Type | Default |
---|---|
string | Color(Primary) |
#
checkedIconDefault checked icon (Font Awesome Icon).
Type | Default |
---|---|
any | None |
#
checkedTitleSpecify a custom checked message.
Type | Default |
---|---|
string | None |
#
containerStyleStyle of main container.
Type | Default |
---|---|
View style(Object) | None |
#
fontFamilySpecify different font family.
Type | Default |
---|---|
string | None |
#
iconRightMoves icon to right of text.
Type | Default |
---|---|
boolean | false |
#
iconTypeType of icon set. Supported sets here.
Type | Default |
---|---|
string | None |
#
onIconPressonPress function for checkbox.
Type | Default |
---|---|
Function | None |
#
onLongIconPressonLongPress function for checkbox.
Type | Default |
---|---|
Function | None |
#
rightAligns checkbox to right.
Type | Default |
---|---|
boolean | false |
#
sizeSize of the checkbox.
Type | Default |
---|---|
number | None |
#
textStyleStyle of text.
Type | Default |
---|---|
Text Style(Object) | None |
#
titleTitle of checkbox.
Type | Default |
---|---|
any | None |
#
titlePropsAdditional props for the title Text component.
Type | Default |
---|---|
TextProps | {} |
#
uncheckedColorDefault unchecked color.
Type | Default |
---|---|
string | None |
#
uncheckedIconDefault checked icon (Font Awesome Icon)
Type | Default |
---|---|
any | None |
#
wrapperStyleStyle for the wrapper of checkbox.
Type | Default |
---|---|
View style(Object) | None |