Skip to content

Commit 621b489

Browse files
committed
Merge pull request #8 from jrichardlai/fix-segment-control-border
Fix SegmentControl border styles
2 parents 9a39770 + 7e9f492 commit 621b489

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

App/Components/SegmentedControl.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ var Segment = React.createClass({
4343
if (this.props.selected) {
4444
return (
4545
<View
46-
style={styles.flex}
46+
style={[styles.flex, styles.selectedSegment]}
4747
>
48-
<View style={[styles.button, styles.selectedButton]}>
48+
<View style={[styles.button]}>
4949
<Text style={[styles.text, styles.selectedText]}>
5050
{this.props.title}
5151
</Text>
@@ -89,11 +89,12 @@ var styles = StyleSheet.create({
8989
},
9090
button: {
9191
padding: 5,
92+
margin: 1,
9293
flex: 1,
9394
justifyContent: 'center',
9495
alignItems: 'center',
9596
},
96-
selectedButton: {
97+
selectedSegment: {
9798
backgroundColor: 'white',
9899
},
99100
linkButton: {
@@ -110,4 +111,4 @@ var styles = StyleSheet.create({
110111
}
111112
});
112113

113-
module.exports = SegmentedControl;
114+
module.exports = SegmentedControl;

0 commit comments

Comments
 (0)