From 0469400822046364691ea3df26564a29f4ba8b65 Mon Sep 17 00:00:00 2001 From: Chet Corcos Date: Thu, 15 Aug 2019 13:08:28 -0700 Subject: [PATCH] Don't call sharedApplication in App Extension --- React/DevSupport/RCTDevLoadingView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/DevSupport/RCTDevLoadingView.m b/React/DevSupport/RCTDevLoadingView.m index ec53d8a98d7618..793c90b7ca89c6 100644 --- a/React/DevSupport/RCTDevLoadingView.m +++ b/React/DevSupport/RCTDevLoadingView.m @@ -74,7 +74,7 @@ - (void)setBridge:(RCTBridge *)bridge CGSize screenSize = [UIScreen mainScreen].bounds.size; if (@available(iOS 11.0, *)) { - UIWindow *window = UIApplication.sharedApplication.keyWindow; + UIWindow *window = RCTSharedApplication().keyWindow; self->_window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenSize.width, window.safeAreaInsets.top + 30)]; self->_label = [[UILabel alloc] initWithFrame:CGRectMake(0, window.safeAreaInsets.top, screenSize.width, 30)]; } else {