Skip to content

Commit

Permalink
fix: TextInput flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Aug 29, 2022
1 parent 8b9a34c commit 6e8761d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6e8761d

Please sign in to comment.