Skip to main content

Checkbox.Android

Checkboxes allow the selection of multiple options from a set. This component follows platform guidelines for Android, but can be used on any platform.

Props

TouchableRipple props

status (required)

Type: 'checked' | 'unchecked' | 'indeterminate'

Status of checkbox.

disabled

Type: boolean

Whether checkbox is disabled.

onPress

Type: (e: GestureResponderEvent) => void

Function to execute on press.

uncheckedColor

Type: string

Custom color for unchecked checkbox.

color

Type: string

Custom color for checkbox.

theme

Type: ThemeProp

testID

Type: string

testID to be used on tests.