Skip to content

Commit 130267e

Browse files
committed
chore: sync with upstream
1 parent 2159036 commit 130267e

File tree

9 files changed

+371
-375
lines changed

9 files changed

+371
-375
lines changed

packages/helloworld/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"react": "18.3.1",
16-
"@callstack/react-native-visionos": "0.77.0-rc.0"
16+
"@callstack/react-native-visionos": "0.77.0-rc.1"
1717
},
1818
"devDependencies": {
1919
"@babel/core": "^7.25.2",

packages/out-of-tree-platforms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dist"
2020
],
2121
"devDependencies": {
22-
"metro-resolver": "^0.81.0-alpha.0"
22+
"metro-resolver": "^0.81.0"
2323
},
2424
"engines": {
2525
"node": ">=18"

packages/react-native-test-library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@babel/core": "^7.25.2",
2929
"@react-native/babel-preset": "0.77.0-rc.6",
3030
"react-native": "0.77.0-rc.6",
31-
"@callstack/react-native-visionos": "0.77.0-rc.0"
31+
"@callstack/react-native-visionos": "0.77.0-rc.1"
3232
},
3333
"peerDependencies": {
3434
"react": "*",

packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ - (UIView *)viewWithModuleName:(NSString *)moduleName
157157
surfaceHostingProxyRootView.backgroundColor = [UIColor clearColor];
158158
#else
159159
surfaceHostingProxyRootView.backgroundColor = [UIColor systemBackgroundColor];
160+
#endif
160161
if (_configuration.customizeRootView != nil) {
161162
_configuration.customizeRootView(surfaceHostingProxyRootView);
162163
}

packages/react-native/React/Base/RCTUtils.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ BOOL RCTRunningInAppExtension(void)
610610
}
611611

612612
UIScene *sceneToUse = foregroundActiveScene ? foregroundActiveScene : foregroundInactiveScene;
613+
UIWindowScene *windowScene = (UIWindowScene *)sceneToUse;
613614

614615
#if TARGET_OS_VISION
615616
// Ornaments are supported only on visionOS.

packages/react-native/React/Views/ScrollView/RCTScrollView.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,13 @@ - (void)_keyboardWillChangeFrame:(NSNotification *)notification
339339
// Text field active region is below visible area with keyboard - update diff to bring into view
340340
contentDiff = endFrame.origin.y - focusEnd;
341341
} else {
342+
#if !TARGET_OS_VISION
342343
UIView *inputAccessoryView = _firstResponderViewOutsideScrollView.inputAccessoryView;
343344
if (inputAccessoryView) {
344345
// Text input view is within the inputAccessoryView.
345346
contentDiff = endFrame.origin.y - beginFrame.origin.y;
346347
}
348+
#endif
347349
}
348350
} else if (endFrame.origin.y <= beginFrame.origin.y) {
349351
// Keyboard opened for other reason

0 commit comments

Comments
 (0)