thegamenicorus/react-native-flexi-radio-button

How do I get the value of the selected item?

Closed this issue · 2 comments

How do I get the value of the selected item?

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
    })
}

If this issue still a problem, please re-open issue again