From 31fe832d047e5f7dd3a37ee02677954c503e89ab Mon Sep 17 00:00:00 2001 From: dlowder-salesforce Date: Wed, 21 Jun 2017 15:04:28 -0700 Subject: [PATCH] Fix Apple TV compile errors Summary: Apple TV compilation is currently broken in master -- this fixes it. Existing tests will pass after this change. Closes https://github.com/facebook/react-native/pull/14652 Differential Revision: D5295021 Pulled By: javache fbshipit-source-id: 8b4b0db0afa1caeacac0ad01abbed80fa7e39738 --- React/Modules/RCTDeviceInfo.m | 6 ++++-- React/Modules/RCTUIManager.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/React/Modules/RCTDeviceInfo.m b/React/Modules/RCTDeviceInfo.m index b895ef12d..342ab5788 100644 --- a/React/Modules/RCTDeviceInfo.m +++ b/React/Modules/RCTDeviceInfo.m @@ -93,14 +93,14 @@ static NSDictionary *RCTExportedDimensions(RCTBridge *bridge) }); } +#if !TARGET_OS_TV + - (void)interfaceOrientationDidChange { -#if !TARGET_OS_TV __weak typeof(self) weakSelf = self; RCTExecuteOnMainQueue(^{ [weakSelf _interfaceOrientationDidChange]; }); -#endif } @@ -123,5 +123,7 @@ static NSDictionary *RCTExportedDimensions(RCTBridge *bridge) _currentInterfaceOrientation = nextOrientation; } +#endif // TARGET_OS_TV + @end diff --git a/React/Modules/RCTUIManager.h b/React/Modules/RCTUIManager.h index 2c9e5057b..d59b6e336 100644 --- a/React/Modules/RCTUIManager.h +++ b/React/Modules/RCTUIManager.h @@ -148,8 +148,8 @@ RCT_EXTERN NSString *const RCTUIManagerRootViewKey; - (void)rootViewForReactTag:(NSNumber *)reactTag withCompletion:(void (^)(UIView *view))completion; /** - * Finds a view that is tagged with {@param nativeId} as its nativeID prop - * with the associated {@param rootTag} root tag view hierarchy. Returns the + * Finds a view that is tagged with nativeID as its nativeID prop + * with the associated rootTag root tag view hierarchy. Returns the * view if found, nil otherwise. * * @param nativeID the id reference to native component relative to root view.