From 04212cf053b9fdf6d577fd6517d810aa4de6776a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nishan=20=28o=5E=E2=96=BD=5Eo=29?= Date: Thu, 19 Nov 2026 17:39:33 +0530 Subject: [PATCH] Remove the TextInput fontWeight number conversion from JS --- .../Libraries/Components/TextInput/TextInput.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.js b/packages/react-native/Libraries/Components/TextInput/TextInput.js index 77dcb9829ec6..6a4db557cc89 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.js +++ b/packages/react-native/Libraries/Components/TextInput/TextInput.js @@ -536,13 +536,6 @@ function InternalTextInput(props: TextInputProps): React.Node { const flattenedStyle = flattenStyle(props.style); if (flattenedStyle != null) { let overrides: ?{...TextStyle} = null; - if (typeof flattenedStyle?.fontWeight === 'number') { - overrides = overrides || ({} as {...TextStyle}); - overrides.fontWeight = - // $FlowFixMe[incompatible-type] - flattenedStyle.fontWeight.toString() as TextStyle['fontWeight']; - } - if (flattenedStyle.verticalAlign != null) { overrides = overrides || ({} as {...TextStyle}); overrides.textAlignVertical =