diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.js b/packages/react-native/Libraries/Components/TextInput/TextInput.js index 6f7454c155774e..55451b9772f18c 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.js +++ b/packages/react-native/Libraries/Components/TextInput/TextInput.js @@ -1535,12 +1535,10 @@ function InternalTextInput(props: Props): React.Node { }; } - const style = flattenStyle(props.style); - + let style = flattenStyle(props.style); if (typeof style?.fontWeight === 'number') { - // $FlowFixMe[prop-missing] - // $FlowFixMe[cannot-write] - style.fontWeight = style?.fontWeight.toString(); + // $FlowFixMe + style = [style, {fontWeight: style.fontWeight.toString()}]; } if (Platform.OS === 'ios') {