Skip to content
Snippets Groups Projects
Commit bd8cb48f authored by tina's avatar tina
Browse files

Merge branch '173-in-selector-elements-allow-unselect' into 'master'

allows unselect in bleeding, mucus, cervix and desire

Closes #173

See merge request bloodyhealth/drip!82
parents 484cbcaa 33efc654
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ export default class SelectTabGroup extends Component { ...@@ -23,7 +23,7 @@ export default class SelectTabGroup extends Component {
if (isActive) activeStyle = styles.selectTabActive if (isActive) activeStyle = styles.selectTabActive
return ( return (
<TouchableOpacity <TouchableOpacity
onPress={() => this.props.onSelect(value)} onPress={() => isActive ? this.props.onSelect(null) : this.props.onSelect(value)}
key={i} key={i}
activeOpacity={1} activeOpacity={1}
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment