diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index 7ed4900d319..bb854020995 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -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; }