Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve some XCode warnings #31883

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion React/Base/RCTBridgeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ RCT_EXTERN_C_END
@end

typedef void (^RCTBridgelessBundleURLSetter)(NSURL *bundleURL);
typedef NSURL * (^RCTBridgelessBundleURLGetter)();
typedef NSURL * (^RCTBridgelessBundleURLGetter)(void);

/**
* A class that allows NativeModules/TurboModules to read/write the bundleURL, with or without the bridge.
Expand Down
2 changes: 1 addition & 1 deletion React/CoreModules/RCTAccessibilityManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ - (instancetype)init

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(voiceVoiceOverStatusDidChange:)
name:UIAccessibilityVoiceOverStatusChanged
name:UIAccessibilityVoiceOverStatusDidChangeNotification
object:nil];

self.contentSizeCategory = RCTSharedApplication().preferredContentSizeCategory;
Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTView.m
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ + (UIEdgeInsets)contentInsetsForView:(UIView *)view
while (view) {
UIViewController *controller = view.reactViewController;
if (controller) {
return (UIEdgeInsets){controller.topLayoutGuide.length, 0, controller.bottomLayoutGuide.length, 0};
return controller.view.safeAreaInsets;
}
view = view.superview;
}
Expand Down