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 |
constructor(props: object) |
|
Member Summary
| Public Members | ||
| public |
state: {scaleValue: Animated.Value, opacityValue: Animated.Value} |
|
Public Constructors
public constructor(props: object) source
Params:
| Name | Type | Attribute | Description |
| props | object | ||
| props.label | string |
|
RadioButton can have a label to describe it. |
| props.theme | enum(THEME_NAME) |
|
Theme of RadioButton |
| props.primary | enum(COLOR_NAME) |
|
Primary color name. |
| props.value | string | RadioButton must have a value |
|
| props.checked | boolean |
|
Specifies that an RadioButton should be pre-selected |
| props.disabled | boolean |
|
Specifies that an RadioButton element should be disabled |
| props.onCheck | function(isChecked: boolean, value: string) |
|
Function will be triggered when check the RadioButton |