diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index 7ed4900d319ce7..bb85402099561f 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -161,7 +161,7 @@ - (instancetype)initWithFrame:(CGRect)frame - (NSInteger)bottomSafeViewHeight { if (@available(iOS 11.0, *)) { - return [UIApplication sharedApplication].delegate.window.safeAreaInsets.bottom; + return RCTSharedApplication().delegate.window.safeAreaInsets.bottom; } else { return 0; }