Skip to content

Commit 57004dd

Browse files
committed
hide connect to Metro message
1 parent c8c11c5 commit 57004dd

File tree

1 file changed

+5
-1
lines changed
  • packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon

1 file changed

+5
-1
lines changed

packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,11 @@ - (void)_loadJSBundle:(NSURL *)sourceURL
535535
{
536536
id<RCTDevLoadingViewProtocol> loadingView =
537537
(id<RCTDevLoadingViewProtocol>)[_turboModuleManager moduleForName:"DevLoadingView"];
538-
[loadingView showWithURL:sourceURL];
538+
// When the bundleFilePath is set in the RCTCustomBundleConfiguration it on purpose does not run the packager connection
539+
// so we don't show the message.
540+
if (!_bridgeModuleDecorator.bundleManager.customBundleConfig.bundleFilePath) {
541+
[loadingView showWithURL:sourceURL];
542+
}
539543
}
540544
#endif
541545

0 commit comments

Comments
 (0)