Skip to content

Commit 2ffe1c0

Browse files
committed
fix: default font size
Closes: #45
1 parent 9e839a5 commit 2ffe1c0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/InputSpinner.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,15 +1465,9 @@ InputSpinner.defaultProps = {
14651465
arrows: false,
14661466
showBorder: false,
14671467
fontSize: 14,
1468-
fontFamily: Platform.select({
1469-
ios: "San Francisco",
1470-
default: "sans-serif",
1471-
}),
1468+
fontFamily: defaultFont,
14721469
buttonFontSize: 25,
1473-
buttonFontFamily: Platform.select({
1474-
ios: "San Francisco",
1475-
default: "sans-serif",
1476-
}),
1470+
buttonFontFamily: defaultFont,
14771471
buttonTextColor: null,
14781472
buttonPressTextColor: null,
14791473
maxLength: null,

src/Style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import {Platform, StyleSheet} from "react-native";
55
*/
66
export const defaultColor = "#3E525F";
77
export const defaultTransparent = "#FFFFFF00";
8+
export const defaultFont = Platform.select({
9+
ios: "System",
10+
android: "System",
11+
web: "sans-serif",
12+
});
813

914
/**
1015
* Default style

0 commit comments

Comments
 (0)