changes footer depending on new entry or edit mode

This commit is contained in:
tina
2018-09-23 12:06:23 +02:00
parent 8357d61170
commit e5052bf088
5 changed files with 70 additions and 24 deletions
+7 -1
View File
@@ -23,7 +23,13 @@ export default class SelectTabGroup extends Component {
if (isActive) activeStyle = styles.selectTabActive
return (
<TouchableOpacity
onPress={() => isActive ? this.props.onSelect(null) : this.props.onSelect(value)}
onPress={() => {
if (this.props.isRadioButton) {
this.props.onSelect(value)
} else {
isActive ? this.props.onSelect(null) : this.props.onSelect(value)
}
}}
key={i}
activeOpacity={1}
>