mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
RCTView compiling for AppleTV (#55130)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55130 Compile out unsupported UIKit APIs used by RCTView and it's manager. Changelog: [internal] Reviewed By: Abbondanzo Differential Revision: D90513795 fbshipit-source-id: 64e72cbdae76fbd79914fdc8b6f7affcc2466eac
This commit is contained in:
1 parent
fce872d2ef
commit
53ab483080
2 files changed
+6
-1
No files matched your search
@@ -910,7 +910,8 @@ static void RCTUpdateShadowPathForView(RCTView *view)
|
||||
|
||||
static void RCTUpdateHoverStyleForView(RCTView *view)
|
||||
{
|
||||
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
|
||||
#if !TARGET_OS_TV && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
|
||||
__IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
|
||||
if (@available(iOS 17.0, *)) {
|
||||
UIHoverStyle *hoverStyle = nil;
|
||||
if ([view cursor] == RCTCursorPointer) {
|
||||
|
||||
@@ -295,6 +295,7 @@ RCT_CUSTOM_VIEW_PROPERTY(accessibilityState, NSDictionary, RCTView)
|
||||
|
||||
RCT_CUSTOM_VIEW_PROPERTY(accessibilityShowsLargeContentViewer, BOOL, RCTView)
|
||||
{
|
||||
#if !TARGET_OS_TV
|
||||
if (@available(iOS 13.0, *)) {
|
||||
BOOL showsLargeContentViewer = json ? [RCTConvert BOOL:json] : defaultView.showsLargeContentViewer;
|
||||
|
||||
@@ -306,13 +307,16 @@ RCT_CUSTOM_VIEW_PROPERTY(accessibilityShowsLargeContentViewer, BOOL, RCTView)
|
||||
view.showsLargeContentViewer = NO;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
RCT_CUSTOM_VIEW_PROPERTY(accessibilityLargeContentTitle, NSString, RCTView)
|
||||
{
|
||||
#if !TARGET_OS_TV
|
||||
if (@available(iOS 13.0, *)) {
|
||||
view.largeContentTitle = json ? [RCTConvert NSString:json] : defaultView.largeContentTitle;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
RCT_CUSTOM_VIEW_PROPERTY(nativeID, NSString *, RCTView)
|
||||
|
||||
Reference in new issue
Block a user