RadioGroup will pass onPress to the RadioButton children. That makes not possible to for example have a whole row clickable.
Proposed solution:
RadioButton(s), place the onPress on itTouchableRipple around it with the onPress prop<RadioButton.Group
onValueChange={value => this.setState({ value })}
value={this.state.value}
>
<View style={styles.row}>
<RadioButton value="first" />
<Text>First</Text>
</View>
<View style={styles.row}>
<RadioButton value="second" />
</View>
</RadioButton.Group>
^ in this case, it'd be nice that RadioButton.Group would place a TouchabelRipple around the children and control the onPress.
| software | version
| --------------------- | -------
| react-native-paper | 2.9.1
any workaround for this one?
@ferrannp Does react native paper 3 support this feature?
@hamidfzm Unfortunately no, but we will accept a PR that implements this.
Hello 馃憢, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
Most helpful comment
any workaround for this one?