diff --git a/src/components/TextInput/TextInputFlat.tsx b/src/components/TextInput/TextInputFlat.tsx index 378366e176..447bf810c2 100644 --- a/src/components/TextInput/TextInputFlat.tsx +++ b/src/components/TextInput/TextInputFlat.tsx @@ -88,12 +88,13 @@ const TextInputFlat = ({ const { fontSize: fontSizeStyle, lineHeight: lineHeightStyle, - fontWeight, + fontWeight: fontWeightStyle, height, paddingHorizontal, textAlign, ...viewStyle } = (StyleSheet.flatten(style) || {}) as TextStyle; + const fontWeight = fontWeightStyle ?? font.fontWeight; const fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE; const lineHeight = lineHeightStyle || (Platform.OS === 'web' ? fontSize * 1.2 : undefined); diff --git a/src/components/TextInput/TextInputOutlined.tsx b/src/components/TextInput/TextInputOutlined.tsx index 70b590fabb..03bc6732d4 100644 --- a/src/components/TextInput/TextInputOutlined.tsx +++ b/src/components/TextInput/TextInputOutlined.tsx @@ -90,13 +90,14 @@ const TextInputOutlined = ({ const { fontSize: fontSizeStyle, - fontWeight, + fontWeight: fontWeightStyle, lineHeight: lineHeightStyle, height, backgroundColor = colors?.background, textAlign, ...viewStyle } = (StyleSheet.flatten(style) || {}) as TextStyle; + const fontWeight = fontWeightStyle ?? font.fontWeight; const fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE; const lineHeight = lineHeightStyle || (Platform.OS === 'web' ? fontSize * 1.2 : undefined);