Skip to content

Commit f3561a1

Browse files
chore: fix crashing Semibold font weight in text variants
1 parent 67b6411 commit f3561a1

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/design-system/config/textVariants.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,25 @@ export const textVariants: {
2828
LgBold: { fontWeight: 'Bold', fontSize: 'lg' },
2929
LgMedium: { fontWeight: 'Medium', fontSize: 'lg' },
3030
LgRegular: { fontWeight: 'Regular', fontSize: 'lg' },
31-
LgSemibold: { fontWeight: 'Semibold', fontSize: 'lg' },
31+
// FIXME: Investigate why Semibold is crashing
32+
// Semibold is crashing for some reason
33+
// https://github.com/expo/expo/issues/29030
34+
LgSemibold: { fontWeight: 'Bold', fontSize: 'lg' },
3235
MdBold: { fontWeight: 'Bold', fontSize: 'md' },
3336
MdMedium: { fontWeight: 'Medium', fontSize: 'md' },
3437
MdRegular: { fontWeight: 'Regular', fontSize: 'md' },
35-
MdSemibold: { fontWeight: 'Semibold', fontSize: 'md' },
38+
// FIXME: Investigate why Semibold is crashing
39+
MdSemibold: { fontWeight: 'Bold', fontSize: 'md' },
3640
SmBold: { fontWeight: 'Bold', fontSize: 'sm' },
3741
SmMedium: { fontWeight: 'Medium', fontSize: 'sm' },
3842
SmRegular: { fontWeight: 'Regular', fontSize: 'sm' },
39-
SmSemibold: { fontWeight: 'Semibold', fontSize: 'sm' },
43+
// FIXME: Investigate why Semibold is crashing
44+
SmSemibold: { fontWeight: 'Bold', fontSize: 'sm' },
4045
XlBold: { fontWeight: 'Bold', fontSize: 'xl' },
4146
XlMedium: { fontWeight: 'Medium', fontSize: 'xl' },
4247
XlRegular: { fontWeight: 'Regular', fontSize: 'xl' },
43-
XlSemibold: { fontWeight: 'Semibold', fontSize: 'xl' },
48+
// FIXME: Investigate why Semibold is crashing
49+
XlSemibold: { fontWeight: 'Bold', fontSize: 'xl' },
4450
XsBold: { fontWeight: 'Bold', fontSize: 'xs' },
4551
XsMedium: { fontWeight: 'Medium', fontSize: 'xs' },
4652
XsRegular: { fontWeight: 'Regular', fontSize: 'xs' },

0 commit comments

Comments
 (0)