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
This commit is contained in:
dlowder-salesforce 2017-06-21 15:04:28 -07:00 committed by Facebook Github Bot
parent 119959252e
commit 31fe832d04
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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.