Skip to content

Commit

Permalink
fix: sets bundleUrl before reload for custom RCTBridges for brownfiel…
Browse files Browse the repository at this point in the history
…d app (#119)
  • Loading branch information
wes4m authored Feb 19, 2025
1 parent 7e7f233 commit 0860106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-native/ios/HotUpdater/HotUpdater.mm
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ - (void)sendEventWithName:(NSString * _Nonnull)name result:(NSDictionary *)resul
RCT_EXPORT_METHOD(reload) {
NSLog(@"HotUpdater requested a reload");
dispatch_async(dispatch_get_main_queue(), ^{
[super.bridge setValue:[HotUpdater bundleURL] forKey:@"bundleURL"];
RCTTriggerReloadCommandListeners(@"HotUpdater requested a reload");
});
}
Expand Down

0 comments on commit 0860106

Please sign in to comment.