mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Mike Grabowski
parent
72473c7c3e
commit
683908dedf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user