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

Summary:
Fixes https://github.com/facebook/react-native/issues/25767 .

## Changelog

[iOS] [Fixed] - Don't call sharedApplication in App Extension
Pull Request resolved: https://github.com/facebook/react-native/pull/25769

Test Plan: RN works in App Extension.

Reviewed By: cpojer

Differential Revision: D16516104

Pulled By: sammy-SC

fbshipit-source-id: 446fd1d88724b783b2afb2369783b9a85b5cc178
This commit is contained in:
zhongwuzw
2019-08-07 19:17:06 +02:00
committed by Mike Grabowski
parent 72473c7c3e
commit 683908dedf
+1 -1
View File
@@ -161,7 +161,7 @@
- (NSInteger)bottomSafeViewHeight
{
if (@available(iOS 11.0, *)) {
return [UIApplication sharedApplication].delegate.window.safeAreaInsets.bottom;
return RCTSharedApplication().delegate.window.safeAreaInsets.bottom;
} else {
return 0;
}