diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 59955afd28d393..acd72b43a4a27a 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1522,13 +1522,17 @@ const ExportedForwardRef: React.AbstractComponent< editable={readOnly !== undefined ? !readOnly : editable} autoComplete={ Platform.OS === 'android' - ? autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ?? + ? // $FlowFixMe + autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ?? autoComplete : undefined } textContentType={ - Platform.OS === 'ios' && autoComplete - ? autoCompleteWebToTextContentTypeMap[autoComplete] + Platform.OS === 'ios' && + autoComplete && + autoComplete in autoCompleteWebToTextContentTypeMap + ? // $FlowFixMe + autoCompleteWebToTextContentTypeMap[autoComplete] : textContentType } {...restProps}