File tree Expand file tree Collapse file tree
packages/react-native/React/Views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -910,7 +910,8 @@ static void RCTUpdateShadowPathForView(RCTView *view)
910910
911911static void RCTUpdateHoverStyleForView (RCTView *view)
912912{
913- #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
913+ #if !TARGET_OS_TV && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
914+ __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
914915 if (@available (iOS 17.0 , *)) {
915916 UIHoverStyle *hoverStyle = nil ;
916917 if ([view cursor ] == RCTCursorPointer) {
Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ - (void)updateAccessibilityTraitsForRole:(RCTView *)view withDefaultView:(RCTVie
295295
296296RCT_CUSTOM_VIEW_PROPERTY (accessibilityShowsLargeContentViewer, BOOL , RCTView)
297297{
298+ #if !TARGET_OS_TV
298299 if (@available (iOS 13.0 , *)) {
299300 BOOL showsLargeContentViewer = json ? [RCTConvert BOOL: json] : defaultView.showsLargeContentViewer ;
300301
@@ -306,13 +307,16 @@ - (void)updateAccessibilityTraitsForRole:(RCTView *)view withDefaultView:(RCTVie
306307 view.showsLargeContentViewer = NO ;
307308 }
308309 }
310+ #endif
309311}
310312
311313RCT_CUSTOM_VIEW_PROPERTY (accessibilityLargeContentTitle, NSString , RCTView)
312314{
315+ #if !TARGET_OS_TV
313316 if (@available (iOS 13.0 , *)) {
314317 view.largeContentTitle = json ? [RCTConvert NSString: json] : defaultView.largeContentTitle ;
315318 }
319+ #endif
316320}
317321
318322RCT_CUSTOM_VIEW_PROPERTY (nativeID, NSString *, RCTView)
You can’t perform that action at this time.
0 commit comments