diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index decaeae0057f21..da0e0bd77b3fb6 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1057,6 +1057,10 @@ function InternalTextInput(props: Props): React.Node { // This is a hack to let Flow know we want an exact object |} = {...null}; + // The default value for `blurOnSubmit` is true for single-line fields and + // false for multi-line fields. + const blurOnSubmit = props.blurOnSubmit ?? !props.multiline; + if (Platform.OS === 'ios') { const RCTTextInputView = props.multiline ? RCTMultilineTextInputView @@ -1073,6 +1077,7 @@ function InternalTextInput(props: Props): React.Node {