mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
Remove __has_include calls for UIUserActivity.h
Summary: This removes the `__has_include` calls. Reviewed By: cpojer Differential Revision: D15079552 fbshipit-source-id: f05c723e1c59313a0149adfcbac87d6af43932d4
This commit is contained in:
parent
cc2b3d0ebf
commit
290ca81d5e
@ -6,7 +6,9 @@
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000) /* __IPHONE_12_0 */
|
||||
#import <UIKit/UIUserActivity.h>
|
||||
#endif
|
||||
#import <React/RCTEventEmitter.h>
|
||||
|
||||
@interface RCTLinkingManager : RCTEventEmitter
|
||||
@ -23,7 +25,7 @@
|
||||
+ (BOOL)application:(nonnull UIApplication *)application
|
||||
continueUserActivity:(nonnull NSUserActivity *)userActivity
|
||||
restorationHandler:
|
||||
#if __has_include(<UIKitCore/UIUserActivity.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000) /* __IPHONE_12_0 */
|
||||
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000) /* __IPHONE_12_0 */
|
||||
(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> *_Nullable))restorationHandler;
|
||||
#else
|
||||
(nonnull void (^)(NSArray *_Nullable))restorationHandler;
|
||||
|
@ -69,7 +69,7 @@ RCT_EXPORT_MODULE()
|
||||
+ (BOOL)application:(UIApplication *)application
|
||||
continueUserActivity:(NSUserActivity *)userActivity
|
||||
restorationHandler:
|
||||
#if __has_include(<UIKitCore/UIUserActivity.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000) /* __IPHONE_12_0 */
|
||||
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000) /* __IPHONE_12_0 */
|
||||
(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> *_Nullable))restorationHandler {
|
||||
#else
|
||||
(nonnull void (^)(NSArray *_Nullable))restorationHandler {
|
||||
|
Loading…
Reference in New Issue
Block a user