Skip to content

Commit 18b15bf

Browse files
committed
Apple TV support 5: adjustments after manual import of facebook#10427
1 parent 5d4b476 commit 18b15bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

React/Base/RCTPlatform.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ @implementation RCTPlatform
3939
@"forceTouchAvailable": @(RCTForceTouchAvailable()),
4040
@"osVersion": [device systemVersion],
4141
@"systemName": [device systemName],
42+
#if TARGET_OS_TV
43+
@"interfaceIdiom": interfaceIdiom(UIUserInterfaceIdiomTV),
44+
#else
4245
@"interfaceIdiom": interfaceIdiom([device userInterfaceIdiom]),
46+
#endif
4347
};
4448
}
4549

React/Views/RCTTabBarItem.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ - (void)setSelectedIcon:(UIImage *)selectedIcon
107107

108108
- (void)setBadgeColor:(UIColor *)bagdeColor
109109
{
110-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
110+
#if !TARGET_OS_TV && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
111111
_barItem.badgeColor = bagdeColor;
112112
#endif
113113
}

0 commit comments

Comments
 (0)