diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm index b0c645fa812..349e53cef6f 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm +++ b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm @@ -323,6 +323,15 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame) @"birthdateYear" : UITextContentTypeBirthdateYear, }]; } + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 170400 /* __IPHONE_17_4 */ + if (@available(iOS 17.4, *)) { + [mutableContentTypeMap addEntriesFromDictionary:@{ + @"cellularEID" : UITextContentTypeCellularEID, + @"cellularIMEI" : UITextContentTypeCellularIMEI, + }]; + } +#endif #endif contentTypeMap = mutableContentTypeMap; diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm index 63457587162..2b0278d31b7 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm @@ -240,6 +240,15 @@ UITextContentType RCTUITextContentTypeFromString(const std::string &contentType) @"birthdateYear" : UITextContentTypeBirthdateYear, }]; } + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 170400 /* __IPHONE_17_4 */ + if (@available(iOS 17.4, *)) { + [mutableContentTypeMap addEntriesFromDictionary:@{ + @"cellularEID" : UITextContentTypeCellularEID, + @"cellularIMEI" : UITextContentTypeCellularIMEI, + }]; + } +#endif #endif contentTypeMap = mutableContentTypeMap;