Skip to content

Commit c5ea18f

Browse files
zhongwuzwfacebook-github-bot
authored andcommitted
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
1 parent bb623e6 commit c5ea18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Modules/RCTRedBox.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ - (instancetype)initWithFrame:(CGRect)frame
161161
- (NSInteger)bottomSafeViewHeight
162162
{
163163
if (@available(iOS 11.0, *)) {
164-
return [UIApplication sharedApplication].delegate.window.safeAreaInsets.bottom;
164+
return RCTSharedApplication().delegate.window.safeAreaInsets.bottom;
165165
} else {
166166
return 0;
167167
}

0 commit comments

Comments
 (0)