Home Reference Source Repository
public class | source

Checkbox

Extends:

react-native~Component → Checkbox

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

state: *

Public Constructors

public constructor(props: object) source

Params:

NameTypeAttributeDescription
props object
props.label string
  • optional

Checkbox can have a label to describe it.

props.theme enum(THEME_NAME)
  • optional
  • default: 'light'

Theme of Checkbox

props.primary enum(COLOR_NAME)
  • optional
  • default: PRIMARY

Primary color name.

props.value string

Checkbox must have a value

props.checked boolean
  • optional

Specifies that an Checkbox should be pre-selected

props.disabled boolean
  • optional

Specifies that an Checkbox element should be disabled

props.onCheck function(isChecked: boolean, value: string)
  • optional

Function will be triggered when check or uncheck the Checkbox

Public Members

public state: * source