Skip to content

Commit 3d6b248

Browse files
committed
fix(style): height and alignment of spinner on container
Closes: #33
1 parent 96802ce commit 3d6b248

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/InputSpinner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,9 @@ class InputSpinner extends Component {
785785
return [
786786
Style.container,
787787
{
788-
flex: 1,
789788
borderColor: this.props.showBorder ? this._getColor() : "transparent",
790789
width: this.props.width,
790+
height: this.props.height,
791791
},
792792
this.props.style,
793793
];
@@ -807,7 +807,7 @@ class InputSpinner extends Component {
807807
fontFamily: this.props.fontFamily,
808808
borderColor: this.props.showBorder ? this._getColor() : "transparent",
809809
backgroundColor: this.props.background,
810-
height: this.props.height
810+
height: this.props.height,
811811
},
812812
this.props.inputStyle,
813813
];

src/Style.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export const Style = StyleSheet.create({
1212
flexDirection: "row",
1313
overflow: "hidden",
1414
width: 150,
15+
alignItems: "center",
16+
justifyContent: "center",
1517
},
1618
buttonLeft: {
1719
alignItems: "center",
@@ -34,9 +36,9 @@ export const Style = StyleSheet.create({
3436
...Platform.select({
3537
web: {
3638
outlineWidth: 0,
37-
outline: "none"
39+
outline: "none",
3840
},
39-
})
41+
}),
4042
},
4143
buttonText: {
4244
color: "white",
@@ -50,8 +52,8 @@ export const Style = StyleSheet.create({
5052
...Platform.select({
5153
web: {
5254
outlineWidth: 0,
53-
outline: "none"
55+
outline: "none",
5456
},
55-
})
57+
}),
5658
},
5759
});

0 commit comments

Comments
 (0)