react-native-macos 0.72.16 → 0.72.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +5 -0
- package/Libraries/Utilities/Platform.android.js +4 -0
- package/Libraries/Utilities/Platform.d.ts +2 -0
- package/Libraries/Utilities/Platform.ios.js +5 -0
- package/Libraries/Utilities/Platform.macos.js +4 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTPlatform.mm +4 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -51,6 +51,11 @@ Pod::Spec.new do |s|
|
|
|
51
51
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
52
52
|
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
53
53
|
}
|
|
54
|
+
# [macOS Restrict UIKit to iOS and visionOS
|
|
55
|
+
s.ios.framework = ["Accelerate", "UIKit"]
|
|
56
|
+
s.visionos.framework = ["Accelerate", "UIKit"]
|
|
57
|
+
s.osx.framework = ["Accelerate"]
|
|
58
|
+
# macOS]
|
|
54
59
|
|
|
55
60
|
s.dependency "RCT-Folly", folly_version
|
|
56
61
|
s.dependency "React-Codegen", version
|
|
@@ -65,6 +65,10 @@ const Platform = {
|
|
|
65
65
|
// $FlowFixMe[object-this-reference]
|
|
66
66
|
return this.constants.uiMode === 'tv';
|
|
67
67
|
},
|
|
68
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
69
|
+
get isVision(): boolean {
|
|
70
|
+
return false;
|
|
71
|
+
},
|
|
68
72
|
select: <T>(spec: PlatformSelectSpec<T>): T =>
|
|
69
73
|
'android' in spec
|
|
70
74
|
? // $FlowFixMe[incompatible-return]
|
|
@@ -58,6 +58,11 @@ const Platform = {
|
|
|
58
58
|
return this.constants.interfaceIdiom === 'tv';
|
|
59
59
|
},
|
|
60
60
|
// $FlowFixMe[unsafe-getters-setters]
|
|
61
|
+
get isVision(): boolean {
|
|
62
|
+
// $FlowFixMe[object-this-reference]
|
|
63
|
+
return this.constants.interfaceIdiom === 'vision';
|
|
64
|
+
},
|
|
65
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
61
66
|
get isTesting(): boolean {
|
|
62
67
|
if (__DEV__) {
|
|
63
68
|
// $FlowFixMe[object-this-reference]
|
|
@@ -52,6 +52,10 @@ const Platform = {
|
|
|
52
52
|
return false;
|
|
53
53
|
},
|
|
54
54
|
// $FlowFixMe[unsafe-getters-setters]
|
|
55
|
+
get isVision(): boolean {
|
|
56
|
+
return false;
|
|
57
|
+
},
|
|
58
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
55
59
|
get isTesting(): boolean {
|
|
56
60
|
if (__DEV__) {
|
|
57
61
|
// $FlowFixMe[object-this-reference]
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -30,6 +30,10 @@ static NSString *interfaceIdiom(UIUserInterfaceIdiom idiom)
|
|
|
30
30
|
return @"tv";
|
|
31
31
|
case UIUserInterfaceIdiomCarPlay:
|
|
32
32
|
return @"carplay";
|
|
33
|
+
#if TARGET_OS_VISION
|
|
34
|
+
case UIUserInterfaceIdiomVision:
|
|
35
|
+
return @"vision";
|
|
36
|
+
#endif
|
|
33
37
|
default:
|
|
34
38
|
return @"unknown";
|
|
35
39
|
}
|
package/package.json
CHANGED