From 9954499df1841cf997b6c6d02e9a267810c6180e Mon Sep 17 00:00:00 2001 From: Douglas Date: Tue, 9 Jan 2018 15:39:14 -0800 Subject: [PATCH] Import RCTTVRemoteHandler only on tvOS Summary: Fix issue #17027 (`RCTModalHostView` has a tvOS dependency that was not wrapped in `TARGET_OS_TV`) Existing test automation should pass. [GENERAL] [BUGFIX] [tvOS] Fix cocoapods compile issue in RCTModalHostView Closes https://github.com/facebook/react-native/pull/17502 Differential Revision: D6688166 Pulled By: hramos fbshipit-source-id: 38297f439f75a8303f59f83b92e004c6c73d9bf6 --- React/Views/RCTModalHostView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/React/Views/RCTModalHostView.m b/React/Views/RCTModalHostView.m index 50f44697e92e20..6dbd6b658fc14b 100644 --- a/React/Views/RCTModalHostView.m +++ b/React/Views/RCTModalHostView.m @@ -18,7 +18,9 @@ #import "RCTUIManager.h" #import "RCTUtils.h" #import "UIView+React.h" +#if TARGET_OS_TV #import "RCTTVRemoteHandler.h" +#endif @implementation RCTModalHostView {