Skip to content

Commit

Permalink
fix: issues with outlines
Browse files Browse the repository at this point in the history
Closes #30 #31
  • Loading branch information
marcocesarato committed Jan 31, 2021
1 parent d38210f commit 75878a5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/InputSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,7 @@ class InputSpinner extends Component {
fontFamily: this.props.fontFamily,
borderColor: this.props.showBorder ? this._getColor() : "transparent",
backgroundColor: this.props.background,
height: this.props.height,
flex: 1,
height: this.props.height
},
this.props.inputStyle,
];
Expand Down
17 changes: 14 additions & 3 deletions src/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Marco Cesarato <[email protected]>
*/

import {StyleSheet} from "react-native";
import {Platform, StyleSheet} from "react-native";

export const Style = StyleSheet.create({
container: {
Expand Down Expand Up @@ -31,7 +31,12 @@ export const Style = StyleSheet.create({
alignItems: "center",
justifyContent: "center",
borderRadius: 999,
outlineWidth: 0,
...Platform.select({
web: {
outlineWidth: 0,
outline: "none"
},
})
},
buttonText: {
color: "white",
Expand All @@ -41,6 +46,12 @@ export const Style = StyleSheet.create({
flex: 1,
textAlign: "center",
justifyContent: "center",
outlineWidth: 0,
borderWidth: 0,
...Platform.select({
web: {
outlineWidth: 0,
outline: "none"
},
})
},
});

0 comments on commit 75878a5

Please sign in to comment.