From aef843bfe60bda6bcc98d3fb4a6c295c9f4b66e3 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Fri, 17 Dec 2021 11:44:35 -0800 Subject: [PATCH] update jsBundleURLForBundleRoot in template project Summary: Changelog: [iOS][Changed] - updated `jsBundleURLForBundleRoot:fallbackResource` to `jsBundleURLForBundleRoot:` Reviewed By: sota000 Differential Revision: D33192280 fbshipit-source-id: 77ed2f2b767811d9f13a33cac77598b425df95c3 --- template/ios/HelloWorld/AppDelegate.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/ios/HelloWorld/AppDelegate.mm b/template/ios/HelloWorld/AppDelegate.mm index ad741b395658ae..ba746f6fa9b46b 100644 --- a/template/ios/HelloWorld/AppDelegate.mm +++ b/template/ios/HelloWorld/AppDelegate.mm @@ -60,7 +60,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif