From b1047d49ff45f0f795c9e336e18deb9e09c34887 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 27 Mar 2024 10:50:09 -0700 Subject: [PATCH] Fixes bundle url reset logic (#43680) Summary: Fixes bundle url reset logic ## Changelog: [IOS] [FIXED] - [Fabric] Fixes bundle url reset logic Pull Request resolved: https://github.com/facebook/react-native/pull/43680 Test Plan: bundle url set works. Reviewed By: philIip Differential Revision: D55427061 Pulled By: arushikesarwani94 fbshipit-source-id: 2b26b1f7c51281b7555a8621b97c067eadcf2db3 --- .../react/runtime/platform/ios/ReactCommon/RCTHost.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm index 711f94dfac4c71..4547a0daee19fc 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm @@ -107,7 +107,7 @@ - (instancetype)initWithBundleURL:(NSURL *)bundleURL }; auto bundleURLSetter = ^(NSURL *bundleURL_) { - [weakSelf _setBundleURL:bundleURL]; + [weakSelf _setBundleURL:bundleURL_]; }; auto defaultBundleURLGetter = ^NSURL *()