Permalink
Browse files

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 #14652

Differential Revision: D5295021

Pulled By: javache

fbshipit-source-id: 8b4b0db0afa1caeacac0ad01abbed80fa7e39738
  • Loading branch information...
dlowder-salesforce authored and facebook-github-bot committed Jun 21, 2017
1 parent 1199592 commit 31fe832d047e5f7dd3a37ee02677954c503e89ab
Showing with 6 additions and 4 deletions.
  1. +4 −2 React/Modules/RCTDeviceInfo.m
  2. +2 −2 React/Modules/RCTUIManager.h
@@ -93,14 +93,14 @@ - (void)didReceiveNewContentSizeMultiplier
});
}
#if !TARGET_OS_TV
- (void)interfaceOrientationDidChange
{
#if !TARGET_OS_TV
__weak typeof(self) weakSelf = self;
RCTExecuteOnMainQueue(^{
[weakSelf _interfaceOrientationDidChange];
});
#endif
}
@@ -123,5 +123,7 @@ - (void)_interfaceOrientationDidChange
_currentInterfaceOrientation = nextOrientation;
}
#endif // TARGET_OS_TV
@end
@@ -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.

1 comment on commit 31fe832

@amorenew

This comment has been minimized.

Show comment
Hide comment
@amorenew

amorenew Aug 8, 2017

is there will be android tv support in the future like apple tv?

amorenew commented on 31fe832 Aug 8, 2017

is there will be android tv support in the future like apple tv?

Please sign in to comment.