Skip to content

Commit 5ffcf30

Browse files
SteJaySullijameswilddev
authored andcommitted
Added font weight to buttons
1 parent 0ef9f1a commit 5ffcf30

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

react-native/components/createButtonComponent/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const createButtonComponent = (
6666
const textBase: TextStyle = {
6767
fontFamily: buttonStyle.fontFamily,
6868
fontSize: buttonStyle.fontSize,
69+
fontWeight: buttonStyle.fontWeight,
6970
lineHeight: buttonStyle.fontSize * 1.4,
7071
};
7172

react-native/types/ButtonStyle/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ export type ButtonStyle = {
1414
*/
1515
readonly fontSize: number;
1616

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+
1722
/**
1823
* The amount of horizontal padding inside the button.
1924
*/

0 commit comments

Comments
 (0)