Remove deprecated RCTReloadNotification

Reviewed By: adamjernst

Differential Revision: D4294180

fbshipit-source-id: 6837597df2a798661c993c6f63ec430989954de6
This commit is contained in:
Pieter De Baets
2016-12-07 16:27:55 -08:00
committed by Facebook Github Bot
parent 59407f3660
commit 286a1b2e5e
6 changed files with 11 additions and 20 deletions

View File

@@ -563,7 +563,7 @@ RCT_EXPORT_METHOD(show)
RCT_EXPORT_METHOD(reload)
{
[_bridge requestReload];
[_bridge reload];
}
RCT_EXPORT_METHOD(debugRemotely:(BOOL)enableDebug)

View File

@@ -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 };

View File

@@ -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