We're a place where coders share, stay up-to-date and grow their careers.
can you please share your code?
RadioButton.js
class RadioButton extends Component { constructor(props) { super(props) this.state = { value: null, Arr: [] } } _renderRadioButton() { return this.props.Arr.map((item, i) => { return ( {item.text} style={Styles.radioCircleStyles} onPress={this.props.onPress} > {this.props.value === item.key && ()} ) }) }
render() { return ( <View style={Styles.radioButtonMainContainerStyles} > {this._renderRadioButton()} </View> ) }
}
APP.jS
this._handleRadioButton(item)} value ={this.state.value}/>
Please find the screenshot for the error Or Send me your email-id i will share you my code.
can you please share your code?
RadioButton.js
class RadioButton extends Component {
constructor(props) {
super(props)
this.state = {
value: null,
Arr: []
}
}
_renderRadioButton() {
return this.props.Arr.map((item, i) => {
return (
{item.text}
style={Styles.radioCircleStyles}
onPress={this.props.onPress}
>
{this.props.value === item.key && ()}
)
})
}
}
APP.jS
this._handleRadioButton(item)} value ={this.state.value}/>
Please find the screenshot for the error
Or Send me your email-id i will share you my code.