From ebb55a780a31ee985f48536b3eb7794cdff03304 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 1 Feb 2024 02:53:52 -0800 Subject: [PATCH] Fix Template for Bridgeless mode (#42781) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42781 Change in [31cf4c4ead](https://github.com/facebook/react-native/commit/31cf4c4eada59bde62f30e14024719779fc23a91) broke the template for bridgeless as we changed the signature of a method in the header of `RCTAppDelegate`. This change aligns the API between RCTAppDelegate and the template's AppDelegate ## Changelog: [iOS][Fixed] - Align the the bundleURL API from `RCTAppDelegate` to template's `AppDelegate` Reviewed By: cortinico, dmytrorykun Differential Revision: D53274434 fbshipit-source-id: 25bad702ba05db2e3a6a9449abbda7d8e2fdb8a0 --- packages/react-native/template/ios/HelloWorld/AppDelegate.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/template/ios/HelloWorld/AppDelegate.mm b/packages/react-native/template/ios/HelloWorld/AppDelegate.mm index 0fd74b157dc..daebde2edb3 100644 --- a/packages/react-native/template/ios/HelloWorld/AppDelegate.mm +++ b/packages/react-native/template/ios/HelloWorld/AppDelegate.mm @@ -16,10 +16,10 @@ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { - return [self getBundleURL]; + return [self bundleURL]; } -- (NSURL *)getBundleURL +- (NSURL *)bundleURL { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];