How do I get the value of the selected item?
Closed this issue · 2 comments
java773863202 commented
How do I get the value of the selected item?
thegamenicorus commented
Hello @java773863202
You can get both index and value from 'onSelect' of RadioGroup
<RadioGroup
//...other props
onSelect={this.onSelect}
>
//...radio buttons
</RadioGroup>
onSelect(index, value){
this.setState({
selectedIndex: index
selectedValue: value
})
}
thegamenicorus commented
If this issue still a problem, please re-open issue again