Skip to content

Commit

Permalink
Added font weight to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
SteJaySulli authored and jameswilddev committed Mar 18, 2022
1 parent 0ef9f1a commit 5ffcf30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions react-native/components/createButtonComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const createButtonComponent = (
const textBase: TextStyle = {
fontFamily: buttonStyle.fontFamily,
fontSize: buttonStyle.fontSize,
fontWeight: buttonStyle.fontWeight,
lineHeight: buttonStyle.fontSize * 1.4,
};

Expand Down
5 changes: 5 additions & 0 deletions react-native/types/ButtonStyle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export type ButtonStyle = {
*/
readonly fontSize: number;

/**
* The weight of the text on the button.
*/
readonly fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;

/**
* The amount of horizontal padding inside the button.
*/
Expand Down

0 comments on commit 5ffcf30

Please sign in to comment.