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
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user