Skip to content

Commit a8e64fc

Browse files
authored
Fix app reloading with New Architecture (#2784)
1 parent 5105a70 commit a8e64fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/CodePush/CodePush.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#import <React/RCTEventDispatcher.h>
66
#import <React/RCTRootView.h>
77
#import <React/RCTUtils.h>
8+
#import <React/RCTReloadCommand.h>
89
#else // back compatibility for RN version < 0.40
910
#import "RCTAssert.h"
1011
#import "RCTBridgeModule.h"
@@ -540,7 +541,7 @@ - (void)loadBundle
540541
[super.bridge setValue:[CodePush bundleURL] forKey:@"bundleURL"];
541542
}
542543

543-
[super.bridge reload];
544+
RCTTriggerReloadCommandListeners(@"react-native-code-push: Restart");
544545
});
545546
}
546547

0 commit comments

Comments
 (0)