Skip to content

Commit 55af2fe

Browse files
Remove API_AVAILABLE(ios(10.0)) / API_AVAILABLE(ios(12.0)) (#35835)
Summary: Pull Request resolved: #35835 The minimum iOS version for react-native-macOS is 12.4 at this time. These checks can be removed. See: microsoft#1605 Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D42523417 fbshipit-source-id: 45e7c0b6f31710dd6fcace0eb624e52489599e09
1 parent e7dcad2 commit 55af2fe

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ UIKeyboardType RCTUIKeyboardTypeFromKeyboardType(facebook::react::KeyboardType k
3535

3636
UIReturnKeyType RCTUIReturnKeyTypeFromReturnKeyType(facebook::react::ReturnKeyType returnKeyType);
3737

38-
API_AVAILABLE(ios(10.0))
3938
UITextContentType RCTUITextContentTypeFromString(std::string const &contentType);
4039

41-
API_AVAILABLE(ios(12.0))
4240
UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string const &passwordRules);
4341

4442
NS_ASSUME_NONNULL_END

React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ UIReturnKeyType RCTUIReturnKeyTypeFromReturnKeyType(ReturnKeyType returnKeyType)
177177
}
178178
}
179179

180-
API_AVAILABLE(ios(10.0))
181180
UITextContentType RCTUITextContentTypeFromString(std::string const &contentType)
182181
{
183182
static dispatch_once_t onceToken;
@@ -227,7 +226,6 @@ UITextContentType RCTUITextContentTypeFromString(std::string const &contentType)
227226
return contentTypeMap[RCTNSStringFromString(contentType)] ?: @"";
228227
}
229228

230-
API_AVAILABLE(ios(12.0))
231229
UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string const &passwordRules)
232230
{
233231
return [UITextInputPasswordRules passwordRulesWithDescriptor:RCTNSStringFromStringNilIfEmpty(passwordRules)];

0 commit comments

Comments
 (0)