Skip to content

Commit

Permalink
chore: sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Nov 27, 2024
1 parent 4951d04 commit 69723ae
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 226 deletions.
2 changes: 1 addition & 1 deletion packages/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"react": "18.3.1",
"@callstack/react-native-visionos": "1000.0.0"
"@callstack/react-native-visionos": "0.77.0-main"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/out-of-tree-platforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dist"
],
"devDependencies": {

Check warning on line 21 in packages/out-of-tree-platforms/package.json

View workflow job for this annotation

GitHub Actions / test_js (20)

Trailing spaces not allowed

Check warning on line 21 in packages/out-of-tree-platforms/package.json

View workflow job for this annotation

GitHub Actions / test_js (18)

Trailing spaces not allowed
"metro-resolver": "^0.81.0-alpha.0"
"metro-resolver": "^0.81.0"
},
"engines": {
"node": ">=18"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ - (UIView *)viewWithModuleName:(NSString *)moduleName
surfaceHostingProxyRootView.backgroundColor = [UIColor clearColor];
#else
surfaceHostingProxyRootView.backgroundColor = [UIColor systemBackgroundColor];
#endif
if (_configuration.customizeRootView != nil) {
_configuration.customizeRootView(surfaceHostingProxyRootView);
}
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/React/Base/RCTUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ BOOL RCTRunningInAppExtension(void)
}

UIScene *sceneToUse = foregroundActiveScene ? foregroundActiveScene : foregroundInactiveScene;
UIWindowScene *windowScene = (UIWindowScene *)sceneToUse;

#if TARGET_OS_VISION
// Ornaments are supported only on visionOS.
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/React/Views/ScrollView/RCTScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,13 @@ - (void)_keyboardWillChangeFrame:(NSNotification *)notification
// Text field active region is below visible area with keyboard - update diff to bring into view
contentDiff = endFrame.origin.y - focusEnd;
} else {
#if !TARGET_OS_VISION
UIView *inputAccessoryView = _firstResponderViewOutsideScrollView.inputAccessoryView;
if (inputAccessoryView) {
// Text input view is within the inputAccessoryView.
contentDiff = endFrame.origin.y - beginFrame.origin.y;
}
#endif
}
} else if (endFrame.origin.y <= beginFrame.origin.y) {
// Keyboard opened for other reason
Expand Down
Loading

0 comments on commit 69723ae

Please sign in to comment.