Skip to content
Permalink
Browse files

Don't call sharedApplication in App Extension (#25769)

Summary:
Fixes #25767 .

## Changelog

[iOS] [Fixed] - Don't call sharedApplication in App Extension
Pull Request resolved: #25769

Test Plan: RN works in App Extension.

Reviewed By: cpojer

Differential Revision: D16516104

Pulled By: sammy-SC

fbshipit-source-id: 446fd1d88724b783b2afb2369783b9a85b5cc178
  • Loading branch information...
zhongwuzw authored and facebook-github-bot committed Jul 26, 2019
1 parent bb623e6 commit c5ea18f7389fe821e7a9882e4b1b30b0a1b266f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 React/Modules/RCTRedBox.m
@@ -161,7 +161,7 @@ - (instancetype)initWithFrame:(CGRect)frame
- (NSInteger)bottomSafeViewHeight
{
if (@available(iOS 11.0, *)) {
return [UIApplication sharedApplication].delegate.window.safeAreaInsets.bottom;
return RCTSharedApplication().delegate.window.safeAreaInsets.bottom;
} else {
return 0;
}

0 comments on commit c5ea18f

Please sign in to comment.
You can’t perform that action at this time.