From 3bd89867d6f23547f07b9b3a569d5a62971004f6 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 {