File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ var Segment = React.createClass({
43
43
if ( this . props . selected ) {
44
44
return (
45
45
< View
46
- style = { styles . flex }
46
+ style = { [ styles . flex , styles . selectedSegment ] }
47
47
>
48
- < View style = { [ styles . button , styles . selectedButton ] } >
48
+ < View style = { [ styles . button ] } >
49
49
< Text style = { [ styles . text , styles . selectedText ] } >
50
50
{ this . props . title }
51
51
</ Text >
@@ -89,11 +89,12 @@ var styles = StyleSheet.create({
89
89
} ,
90
90
button : {
91
91
padding : 5 ,
92
+ margin : 1 ,
92
93
flex : 1 ,
93
94
justifyContent : 'center' ,
94
95
alignItems : 'center' ,
95
96
} ,
96
- selectedButton : {
97
+ selectedSegment : {
97
98
backgroundColor : 'white' ,
98
99
} ,
99
100
linkButton : {
@@ -110,4 +111,4 @@ var styles = StyleSheet.create({
110
111
}
111
112
} ) ;
112
113
113
- module . exports = SegmentedControl ;
114
+ module . exports = SegmentedControl ;
You can’t perform that action at this time.
0 commit comments