We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ef9f1a commit 5ffcf30Copy full SHA for 5ffcf30
react-native/components/createButtonComponent/index.tsx
@@ -66,6 +66,7 @@ export const createButtonComponent = (
66
const textBase: TextStyle = {
67
fontFamily: buttonStyle.fontFamily,
68
fontSize: buttonStyle.fontSize,
69
+ fontWeight: buttonStyle.fontWeight,
70
lineHeight: buttonStyle.fontSize * 1.4,
71
};
72
react-native/types/ButtonStyle/index.tsx
@@ -14,6 +14,11 @@ export type ButtonStyle = {
14
*/
15
readonly fontSize: number;
16
17
+ /**
18
+ * The weight of the text on the button.
19
+ */
20
+ readonly fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
21
+
22
/**
23
* The amount of horizontal padding inside the button.
24
0 commit comments