File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments