Skip to content

Commit

Permalink
Fix app reloading with New Architecture (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenvb authored Dec 12, 2024
1 parent 5105a70 commit a8e64fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/CodePush/CodePush.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#import <React/RCTEventDispatcher.h>
#import <React/RCTRootView.h>
#import <React/RCTUtils.h>
#import <React/RCTReloadCommand.h>
#else // back compatibility for RN version < 0.40
#import "RCTAssert.h"
#import "RCTBridgeModule.h"
Expand Down Expand Up @@ -540,7 +541,7 @@ - (void)loadBundle
[super.bridge setValue:[CodePush bundleURL] forKey:@"bundleURL"];
}

[super.bridge reload];
RCTTriggerReloadCommandListeners(@"react-native-code-push: Restart");
});
}

Expand Down

0 comments on commit a8e64fc

Please sign in to comment.