I am converting React code to React Native. So I need to implement radio buttons.
I use Checkbox
in react-native
for creating the radio button. Please refer below code.
constructor(props){
super(props);
this.state = {radioButton:'value1'};
}
render(){
return(
this.setState({radioButton: 'value1'})}
>
this.setState({radioButton: 'value2'})}
>
this.setState({radioButton: 'value3'})}
>
this.setState({radioButton: 'value4'})}
>
this.setState({radioButton: 'value5'})}
>
);
}