moschan / react-native-simple-radio-button

Simple and handy animated radio button component for React Native
MIT License
453 stars 130 forks source link

I made three radio buttons using pro, the last one is not clickable #146

Open changyu2hao opened 4 years ago

changyu2hao commented 4 years ago

I made three radio buttons using pro, the last one is not clickable

render() { const radioButtons=[ { label: 'No Preference', value: 'No preference' }, { label: 'Female', value: 'Female' }, { label: 'Male', value: 'Male' } ] return (

{this.props.title} { radioButtons.map((obj,i)=>( {this.setState({value3Index:i})}} borderWidth={1} buttonInnerColor={'#e74c3c'} buttonOuterColor={this.state.value3Index === i ? '#2196f3' : '#000'} buttonSize={10} buttonOuterSize={20} buttonStyle={{}} buttonWrapStyle={{marginLeft: 10}} /> {this.setState({value3Index:i})}} labelStyle={commonCheckBoxStyles.checkBoxFont} labelWrapStyle={{}} /> )) }
)

}