From 55af2fe74f5fda8ec6b7028514bf5d17cc9fc38f Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Tue, 17 Jan 2023 02:58:24 -0800 Subject: [PATCH] Remove API_AVAILABLE(ios(10.0)) / API_AVAILABLE(ios(12.0)) (#35835) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35835 The minimum iOS version for react-native-macOS is 12.4 at this time. These checks can be removed. See: https://github.com/microsoft/react-native-macos/issues/1605 Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D42523417 fbshipit-source-id: 45e7c0b6f31710dd6fcace0eb624e52489599e09 --- .../Mounting/ComponentViews/TextInput/RCTTextInputUtils.h | 2 -- .../Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm | 2 -- 2 files changed, 4 deletions(-) diff --git a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h index ffaac133609..2a89399964a 100644 --- a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +++ b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h @@ -35,10 +35,8 @@ UIKeyboardType RCTUIKeyboardTypeFromKeyboardType(facebook::react::KeyboardType k UIReturnKeyType RCTUIReturnKeyTypeFromReturnKeyType(facebook::react::ReturnKeyType returnKeyType); -API_AVAILABLE(ios(10.0)) UITextContentType RCTUITextContentTypeFromString(std::string const &contentType); -API_AVAILABLE(ios(12.0)) UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string const &passwordRules); NS_ASSUME_NONNULL_END diff --git a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm index 99f46819af9..f0012583f08 100644 --- a/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +++ b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm @@ -177,7 +177,6 @@ UIReturnKeyType RCTUIReturnKeyTypeFromReturnKeyType(ReturnKeyType returnKeyType) } } -API_AVAILABLE(ios(10.0)) UITextContentType RCTUITextContentTypeFromString(std::string const &contentType) { static dispatch_once_t onceToken; @@ -227,7 +226,6 @@ UITextContentType RCTUITextContentTypeFromString(std::string const &contentType) return contentTypeMap[RCTNSStringFromString(contentType)] ?: @""; } -API_AVAILABLE(ios(12.0)) UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string const &passwordRules) { return [UITextInputPasswordRules passwordRulesWithDescriptor:RCTNSStringFromStringNilIfEmpty(passwordRules)];