2019-08-14 11:16:59 +00:00
|
|
|
diff --git a/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m b/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m
|
|
|
|
index 6f1e5e8..b835657 100644
|
|
|
|
--- a/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m
|
|
|
|
+++ b/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m
|
|
|
|
@@ -595,6 +595,7 @@ - (void)closeWithCode:(NSInteger)code reason:(NSString *)reason;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ [self.delegate webSocket:self didCloseWithCode:code reason:reason wasClean:YES];
|
|
|
|
[self _sendFrameWithOpcode:RCTSROpCodeConnectionClose data:payload];
|
|
|
|
});
|
|
|
|
}
|
2019-08-07 13:51:34 +00:00
|
|
|
diff --git a/node_modules/react-native/React/Modules/RCTRedBox.m b/node_modules/react-native/React/Modules/RCTRedBox.m
|
|
|
|
index 7ed4900..bb85402 100644
|
|
|
|
--- a/node_modules/react-native/React/Modules/RCTRedBox.m
|
|
|
|
+++ b/node_modules/react-native/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;
|
2019-08-14 11:16:59 +00:00
|
|
|
}
|