diff --git a/lib/SimpleRadioButton.js b/lib/SimpleRadioButton.js index a737044..9f25edd 100644 --- a/lib/SimpleRadioButton.js +++ b/lib/SimpleRadioButton.js @@ -266,7 +266,7 @@ export class RadioButtonLabel extends React.Component { accessibilityLabel={this.props.accessibilityLabel} testID={this.props.testID} onPress={() => { - if (!this.props.disabled) { + if (this.props.onPress && !this.props.disabled) { this.props.onPress( this.props.obj.value, this.props.index)} } }>