Skip to content

Commit 3bd8986

Browse files
douglowderfacebook-github-bot
authored andcommitted
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 #17502 Differential Revision: D6688166 Pulled By: hramos fbshipit-source-id: 38297f439f75a8303f59f83b92e004c6c73d9bf6
1 parent b2848a5 commit 3bd8986

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

React/Views/RCTModalHostView.m

+2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#import "RCTUIManager.h"
1919
#import "RCTUtils.h"
2020
#import "UIView+React.h"
21+
#if TARGET_OS_TV
2122
#import "RCTTVRemoteHandler.h"
23+
#endif
2224

2325
@implementation RCTModalHostView
2426
{

0 commit comments

Comments
 (0)