enables un-select in the component itself

This commit is contained in:
tina
2018-09-21 15:23:13 +02:00
parent 9c2509af3c
commit 33efc654d7
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export default class SelectTabGroup extends Component {
if (isActive) activeStyle = styles.selectTabActive
return (
<TouchableOpacity
onPress={() => this.props.onSelect(value)}
onPress={() => isActive ? this.props.onSelect(null) : this.props.onSelect(value)}
key={i}
activeOpacity={1}
>