Home Manual Reference Source Repository
import RadioButton from 'mrn/lib/RadioButton.js'
public class | source

RadioButton

Extends:

react-native~Component → RadioButton

RadioButton Compoent

Example:

<RadioButton value="1" label="RadioButton On" checked={true}/>
<RadioButton value="2" label="RadioButton Off"/>
<RadioButton value="3" label="RadioButton Off Disabled" disabled={true}/>
<RadioButton value="4" disabled={true}/>

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

state: {scaleValue: Animated.Value, opacityValue: Animated.Value}

Public Constructors

public constructor(props: object) source

Params:

NameTypeAttributeDescription
props object
props.label string
  • optional

RadioButton can have a label to describe it.

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

Theme of RadioButton

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

Primary color name.

props.value string

RadioButton must have a value

props.checked boolean
  • optional

Specifies that an RadioButton should be pre-selected

props.disabled boolean
  • optional

Specifies that an RadioButton element should be disabled

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

Function will be triggered when check the RadioButton

Public Members

public state: {scaleValue: Animated.Value, opacityValue: Animated.Value} source