Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Replace deprecated method for reloading bundle on iOS #2784

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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