react-native-macos 0.73.16 → 0.73.17
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/Utilities/Platform.android.js +4 -0
- package/Libraries/Utilities/Platform.d.ts +2 -0
- package/Libraries/Utilities/Platform.flow.js +4 -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
|
@@ -69,6 +69,10 @@ const Platform: PlatformType = {
|
|
|
69
69
|
// $FlowFixMe[object-this-reference]
|
|
70
70
|
return this.constants.uiMode === 'tv';
|
|
71
71
|
},
|
|
72
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
73
|
+
get isVision(): boolean {
|
|
74
|
+
return false;
|
|
75
|
+
},
|
|
72
76
|
select: <T>(spec: PlatformSelectSpec<T>): T =>
|
|
73
77
|
'android' in spec
|
|
74
78
|
? // $FlowFixMe[incompatible-return]
|
|
@@ -41,6 +41,8 @@ type IOSPlatform = {
|
|
|
41
41
|
// $FlowFixMe[unsafe-getters-setters]
|
|
42
42
|
get isTV(): boolean,
|
|
43
43
|
// $FlowFixMe[unsafe-getters-setters]
|
|
44
|
+
get isVision(): boolean,
|
|
45
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
44
46
|
get isTesting(): boolean,
|
|
45
47
|
// $FlowFixMe[unsafe-getters-setters]
|
|
46
48
|
get isDisableAnimations(): boolean,
|
|
@@ -75,6 +77,8 @@ type AndroidPlatform = {
|
|
|
75
77
|
// $FlowFixMe[unsafe-getters-setters]
|
|
76
78
|
get isTV(): boolean,
|
|
77
79
|
// $FlowFixMe[unsafe-getters-setters]
|
|
80
|
+
get isVision(): boolean,
|
|
81
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
78
82
|
get isTesting(): boolean,
|
|
79
83
|
// $FlowFixMe[unsafe-getters-setters]
|
|
80
84
|
get isDisableAnimations(): boolean,
|
|
@@ -57,6 +57,11 @@ const Platform: PlatformType = {
|
|
|
57
57
|
return this.constants.interfaceIdiom === 'tv';
|
|
58
58
|
},
|
|
59
59
|
// $FlowFixMe[unsafe-getters-setters]
|
|
60
|
+
get isVision(): boolean {
|
|
61
|
+
// $FlowFixMe[object-this-reference]
|
|
62
|
+
return this.constants.interfaceIdiom === 'vision';
|
|
63
|
+
},
|
|
64
|
+
// $FlowFixMe[unsafe-getters-setters]
|
|
60
65
|
get isTesting(): boolean {
|
|
61
66
|
if (__DEV__) {
|
|
62
67
|
// $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
|
}
|