File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
packages/react-native/Libraries/Utilities Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ jobs:
247
247
# JOBS: Build Android
248
248
# -------------------------
249
249
build_android :
250
+ when :
251
+ condition :
252
+ equal : [true, false] # Disable for visionOS
250
253
executor : reactnativeandroid-xlarge
251
254
parameters :
252
255
release_type :
@@ -763,6 +766,9 @@ jobs:
763
766
- react-native-version
764
767
765
768
build_hermesc_linux :
769
+ when :
770
+ condition :
771
+ equal : [true, false] # Disable for visionOS
766
772
docker :
767
773
- image : debian:bullseye
768
774
resource_class : " large"
@@ -1071,6 +1077,9 @@ jobs:
1071
1077
- dSYM/<< parameters.flavor >>
1072
1078
1073
1079
build_hermesc_windows :
1080
+ when :
1081
+ condition :
1082
+ equal : [true, false] # Disable for visionOS
1074
1083
executor :
1075
1084
name : win/default
1076
1085
shell : powershell.exe
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ const Platform: PlatformType = {
65
65
return this . constants . isDisableAnimations ?? this . isTesting ;
66
66
} ,
67
67
// $FlowFixMe[unsafe-getters-setters]
68
+ get isVisionOS ( ) : boolean {
69
+ // $FlowFixMe[object-this-reference]
70
+ return this . constants . interfaceIdiom === 'vision' ;
71
+ } ,
72
+ // $FlowFixMe[unsafe-getters-setters]
68
73
get isTV ( ) : boolean {
69
74
// $FlowFixMe[object-this-reference]
70
75
return this . constants. uiMode === 'tv' ;
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ type AndroidPlatform = {
78
78
Manufacturer : string ,
79
79
| } ,
80
80
// $FlowFixMe[unsafe-getters-setters]
81
+ get isVisionOS ( ) : boolean ,
82
+ // $FlowFixMe[unsafe-getters-setters]
81
83
get isTV ( ) : boolean ,
82
84
// $FlowFixMe[unsafe-getters-setters]
83
85
get isTesting ( ) : boolean ,
You can’t perform that action at this time.
0 commit comments