Scope RCTReloadNotification to one bridge

Summary:
At the moment, posting RCTReloadNotification in any circumstance causes all RCTBridge instances to reload. This change scopes the notification to the bridge for which it was intended.
Closes https://github.com/facebook/react-native/pull/8762

Differential Revision: D3831914

fbshipit-source-id: ff29574f574ecd1a403057ddd0458dea38f0136e
This commit is contained in:
Ben Roth
2016-09-07 17:24:23 -07:00
committed by Facebook Github Bot 2
parent efd8b10135
commit afde9da93d
7 changed files with 24 additions and 16 deletions

View File

@@ -566,9 +566,7 @@ RCT_EXPORT_METHOD(show)
RCT_EXPORT_METHOD(reload)
{
[[NSNotificationCenter defaultCenter] postNotificationName:RCTReloadNotification
object:nil
userInfo:nil];
[_bridge requestReload];
}
- (void)setShakeToShow:(BOOL)shakeToShow