Skip to content

Commit

Permalink
Don't call sharedApplication in App Extension (#25769)
Browse files Browse the repository at this point in the history
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 grabbou committed Aug 7, 2019
1 parent 72473c7 commit 683908d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Modules/RCTRedBox.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 683908d

Please sign in to comment.