mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Remove deprecated RCTReloadNotification
Reviewed By: adamjernst Differential Revision: D4294180 fbshipit-source-id: 6837597df2a798661c993c6f63ec430989954de6
This commit is contained in:
committed by
Facebook Github Bot
parent
59407f3660
commit
286a1b2e5e
@@ -563,7 +563,7 @@ RCT_EXPORT_METHOD(show)
|
||||
|
||||
RCT_EXPORT_METHOD(reload)
|
||||
{
|
||||
[_bridge requestReload];
|
||||
[_bridge reload];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(debugRemotely:(BOOL)enableDebug)
|
||||
|
||||
@@ -56,7 +56,7 @@ RCT_EXPORT_METHOD(reportFatalException:(NSString *)message
|
||||
static NSUInteger reloadRetries = 0;
|
||||
if (!RCT_DEBUG && reloadRetries < _maxReloadAttempts) {
|
||||
reloadRetries++;
|
||||
[_bridge requestReload];
|
||||
[_bridge reload];
|
||||
} else {
|
||||
NSString *description = [@"Unhandled JS Exception: " stringByAppendingString:message];
|
||||
NSDictionary *errorInfo = @{ NSLocalizedDescriptionKey: description, RCTJSStackTraceKey: stack };
|
||||
|
||||
@@ -451,8 +451,9 @@ RCT_EXPORT_METHOD(dismiss)
|
||||
[[[NSURLSession sharedSession] dataTaskWithRequest:request] resume];
|
||||
}
|
||||
|
||||
- (void)reloadFromRedBoxWindow:(__unused RCTRedBoxWindow *)redBoxWindow {
|
||||
[_bridge requestReload];
|
||||
- (void)reloadFromRedBoxWindow:(__unused RCTRedBoxWindow *)redBoxWindow
|
||||
{
|
||||
[_bridge reload];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user