import RadioButton from 'react-native-material-design-components/lib/RadioButton.js'
RadioButton
Extends:
react-native~Component → RadioButton
RadioButton Compoent
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 |