RadioButton
A Radio Button component, should be wrapped with a RadioGroup
(code example)
#
Usage<RadioButton value={null} label={'Default'}/>
#
API#
borderRadiusThe radio button border radius
number
#
colorThe color of the radio button
string
#
containerStyleAdditional styling for the container
ViewStyle
#
contentOnLeftShould the content be rendered left to the button
boolean
#
disabledWhether the radio button should be disabled
boolean
#
iconOnRightShould the icon be on the right side of the label
boolean
#
iconSourceIcon image source
ImageSource
#
iconStyleIcon image style
ImageStyle
#
labelA label for the radio button description
string
#
labelStyleLabel style
TextStyle
#
onPressInvoked when pressing the button
(selected: boolean) => void
#
selectedWhen using RadioButton without a RadioGroup, use this prop to toggle selection
boolean
#
sizeThe size of the radio button, affect both width & height
number
#
valueThe identifier value of the radio button. must be different than other RadioButtons in the same group
string | number | boolean