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

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